If your css file is locatedr in your staticfiles dir, you should use something such as {{ STATIC_URL }}main.css, assuming your CSS file is called main and is located in one of the STATIC_DIRS.
Using staticfiles_dirs in a template makes no sense. Not only your are passing a parameter that has to do with your system configuration and not your urls, but you are also using a directory instead of a file.
In short, it is the static_url parameter that should be passed to form a URL.
Could you show us the following:
Your staticfiles settings.
The link where your browser fetches the css file (see rendered source head when browsing) to gets 404'ed.
If you are using a local server, you could try using a STATIC URL of 127.0.0.1:8000/static/.
Note that this will not work if you use runserver on 0.0.0.0, on which case you should use your local IP address.
On a production server you can do the same, just use your server address.
Finally, you probably did but, have you activated staticfiles in your apps ?
Off Topic: media and static are supposed to be two different things, static is for your actual static files, and media for user-uploaded files, both work pretty much the same way, so it's not a fix to use one in place of the other.
A little detail, but you never know: you should put some ' ' in your link.
Like this :
<link rel="stylesheet" type="text/css" href='{{ STATIC_
URL }}stylesheet.css' />
If there are spaces in your path, this could cause the lookup to fail.
And even if that's not the case, don't rely on the user's browser to fix coding mistakes.
Last thing, I made a typo, the address you could use should start with http, like: http://127.0.0.1/static/
06.08.2011, 07:31, django...@googlegroups.com:
> I am out of office right now and will get back to you when I return. If you don't hear from me, my assistant should contact you shortly. In the meantime, you should take a look at this product I have been using..Click Here
>
> Enable images or click here
>
> Let me know what you think after you have a chance to review.
> Cheers!
>
> If you no longer wish to receive emails, please unsubscribe
>
> 866-288-1880
> 5150 yarmouth ave, Encino, CA 91316
> On Fri, 5 Aug 2011 20:30:18 -0700 (PDT), "vev...@yandex.ru" wrote:
--
О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫