--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ccb20872-b91c-493b-b9f6-b4a28170cb99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hmm... I suppose the closest alternative we have would be to store the base template name in a variable and pass it in from the view.
Hmm... I suppose the closest alternative we have would be to store the base template name in a variable and pass it in from the view.
Either way, I fail to see how that feature would be really useful.
Here is code, that implement this feature for Django 1.4/1.9:
There are backwards-compatibility concerns as a leading dot can no longer be used in a template name, though if developers are following the advice about template namespacing it wouldn't be a problem.
Still, I am not sure if the Django Template Language should evolve new features like this. Is there any prior art in Jinja2? I couldn't find any based on this answer: http://stackoverflow.com/questions/2180247/does-the-jinja2-templating-language-have-the-concept-of-here-current-director
I see you created a pull request: https://github.com/django/django/pull/6318
Syntax for relative path was changed from ... to ./../
Asking again... I am not sure if the Django Template Language should evolve new features like this. Is there any prior art in Jinja2? Absent any other +1's, I guess I would be more comfortable accepting the feature if so.
The code seems too complicated. Could we reuse os.path handling from the standard library to simplify it?
Assuming the feature is accepted, at least a ticket and documentation are needed to finish the patch. See the patch review checklist:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#patch-review-checklist
Yes, the patch must contain a call to posixpath.join somewhere. This is tricky to get right, don’t reinvent the wheel!
Assuming the feature is accepted, at least a ticket and documentation are needed to finish the patch. See the patch review checklist:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#patch-review-checklist