Loading staticfiles in every single template file

33 views
Skip to first unread message

Branko Zivanovic

unread,
May 24, 2016, 8:54:04 AM5/24/16
to Django users
I'm not sure why I need to add following line {% load staticfiles %} in every single template file if there is inheritance.Can I avoid this somehow?

Avraham Serour

unread,
May 25, 2016, 7:19:06 AM5/25/16
to django-users
template tag loading are not inherited


On Tue, May 24, 2016 at 2:56 PM, Branko Zivanovic <internati...@gmail.com> wrote:
I'm not sure why I need to add following line {% load staticfiles %} in every single template file if there is inheritance.Can I avoid this somehow?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e98b82ac-7d6b-415d-a16c-0bb3ccc0f11e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages