Git Product home page Git Product logo

Comments (9)

mitar avatar mitar commented on August 24, 2024

I made a comment on Django ticket. From what I understand this is not possible without code change in Django.

from django-overextends.

stephenmcd avatar stephenmcd commented on August 24, 2024

Can you provide a complete example somewhere of this not working the way you expect it to?

I'm able to use overextends as a replacement for extends just fine.

from django-overextends.

stephenmcd avatar stephenmcd commented on August 24, 2024

I've even checked with multiple base templates with the same name in different apps - the one in the app ordered higher in INSTALLED_APPS is always used.

Possibly you're just missing the correct ordering in INSTALLED_APPS?

from django-overextends.

mitar avatar mitar commented on August 24, 2024

See this example project.

from django-overextends.

mitar avatar mitar commented on August 24, 2024

Tested with current version of django-overextends and Django 1.4.10.

from django-overextends.

stephenmcd avatar stephenmcd commented on August 24, 2024

I've taken a closer look now with your example project and see the issue.

overextends called user.html has no way of knowing that it's being called from user.html, which it would need to know to compare to the template name given to overextends, and when different just act like the extends tag without skipping.

I'm gonna close this at this point since it's not a bug and you can achieve what you want using both extends and overextends - one could argue that this is explicit and therefore the right approach anyway.

from django-overextends.

mitar avatar mitar commented on August 24, 2024

Really? So what should I use if I have user.html extending base.html extending user.html extending base.html?

from django-overextends.

stephenmcd avatar stephenmcd commented on August 24, 2024

I'm not sure what kind of answer you're expecting, that sounds ridiculously contrived.

Like you said earlier, it's not possible without modification to Django.

from django-overextends.

mitar avatar mitar commented on August 24, 2024

Of course example is made up, but when you have multiple apps you do not know how exactly they will end up loading. Currently it fails silently, something being skipped.

And of course use cases are those which then make a case for modification to Django.

from django-overextends.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.