On 11/19/2010 1:56 PM, jonno wrote:
> And I have:
>
> {% load staticfiles %}
> {% get_staticfiles_prefix as STATIC_PREFIX %}
>
> at the top of my template. Sorry to trouble all with this again!
> Thanks for any help -- Jon.
PS: You might want to consider injecting STATIC_PREFIX into your
contexts with a context processor. That way it happens without any need
for template code.
In particular, see
http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-static
regards
Steve
--
DjangoCon US 2010 September 7-9 http://djangocon.us/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.