Hi,
I'm using django1.4.3
I have a django project with 3 apps. All 3 apps templates extend
'app.html'. On 2 of my projects the CSS loads fine, but on third one the
CSS doesn't get loaded because it's not adding '/static/' to the url to the
CSS. So instead of '/static/css/style.css' I'm getting '/css/style.css' ...
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/style.css">
STATIC_URL is working on the 2 projects that use generic views, but not on
the other one. So how can 'STATIC_URL' be blank and how can this be fixed?
I tried adding the following to my index.html template but no joy...
{% load static %}
{% get_static_prefix as STATIC_PREFIX %}
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.