--
Ticket URL: <https://code.djangoproject.com/ticket/24984>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by MoritzS):
I already implemented it here:
https://github.com/MoritzS/jinja2-django-tags
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:1>
* cc: moritz.sichert@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:2>
Comment (by aaugustin):
There is some documentation
[https://docs.djangoproject.com/en/1.8/topics/templates/#django.template.backends.jinja2.Jinja2
here]. Look for "For example, you can create myproject/jinja2.py ...".
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:3>
Comment (by carljm):
Ah, missed those docs; thanks Aymeric.
That code is so simple, it may be that providing a Jinja2 extension is
unnecessary. I think it would be good to at least duplicate or reference
those docs somewhere in this area:
https://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#template-
tags (that is, in the staticfiles docs, not just in the Jinja2 backend
docs).
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:4>
* stage: Unreviewed => Accepted
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:5>
* component: contrib.staticfiles => Documentation
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:6>
* owner: nobody => vallarfax
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:7>
Comment (by vallarfax):
Work on this ticket is available here:
https://github.com/vallarfax/django/tree/ticket_24984
Added a note to the staticfiles documentation that references the
instructions for configuring and using the static template tag with
Jinja2.
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d62194a260eedd30aeea78f407032aabfde4be70" d62194a]:
{{{
#!CommitTicketReference repository=""
revision="d62194a260eedd30aeea78f407032aabfde4be70"
Fixed #24984 -- Added link to Jinja2 static tag instructions in
staticfiles docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"f8140c4679c7185878886dfc1fcf0dc4e5efce4f" f8140c4]:
{{{
#!CommitTicketReference repository=""
revision="f8140c4679c7185878886dfc1fcf0dc4e5efce4f"
[1.8.x] Fixed #24984 -- Added link to Jinja2 static tag instructions in
staticfiles docs.
Backport of d62194a260eedd30aeea78f407032aabfde4be70 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24984#comment:10>