Perhaps someone knows how staticfiles works?
I am developing a site on Django 1.3, and I am basically a beginner at this. My development environment is actually on Apache via wsgi.
I am trying to use the new staticfiles feature of 1.3
I have defined a static directory and a static URL in settings.py.
The static URL is configured in Apache to point to the static directory - this is confirmed as working.
I have confirmed that my static directory is available to django by running mange.py collectstatic - this writes my admin static files, and other static files I have in a a separate directory, to the declared static directory.
In my template, I refer to static files like this:
href="{{ STATIC_URL }}css/some.css"
The problem is that when the HTML is rendered, I get this:
href="css/some.css"
I don't understand why django doesn't populate {{ STATIC_URL }} with the URL i have defined in settings.py
Has anyone had a similar problem?
There is no static URL.