Thursday, January 8, 2015

Re: what's different between {% static %} and {{ STATIC_URL}}

On 2015-01-06 12:55, Andreas Kuhne wrote:
> The difference is the age of the django project you are looking at. {%
> load staticfiles %} the {% static %} is the current way to load and
> use static files. It also has the option to do other things (like MD5
> hashes for versions) automatically and should be used.

Also {% static %} works with your 500.html
As there is no context accessible if an 500 happen, {{ STATIC_URL }} is
not available.

-- Florian

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b988a8e0735fca89751cd0f8d0ca45a3%40ist-total.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment