Comments (9)
I made a comment on Django ticket. From what I understand this is not possible without code change in Django.
from django-overextends.
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.
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.
See this example project.
from django-overextends.
Tested with current version of django-overextends and Django 1.4.10.
from django-overextends.
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.
Really? So what should I use if I have user.html
extending base.html
extending user.html
extending base.html
?
from django-overextends.
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.
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)
- overextending more than three templates not working HOT 3
- Test fails HOT 3
- Merging with app-namespace-template-loader? HOT 1
- Custom inheritance order? HOT 1
- Support Django 1.7 / 1.8 HOT 8
- ImportError raised loading overextends.templatetags.overextends_tags: cannot import name find_template_loader HOT 5
- Support Django 1.9 HOT 4
- AttributeError: 'unicode' object has no attribute 'resolve' HOT 2
- Django 1.9 support HOT 2
- TemplateDoesNotExist in complex cases
- Declare sphinx-me as an extra dependency HOT 2
- Is this behavior now part of Django? HOT 1
- Update readme to reflect that django 'extends' now natively supports this feature. HOT 2
- Django 2.0 support HOT 2
- There can be valid tags before ExtendsNode
- Package should probably user render_context and not context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-overextends.