Fixed it. Thanks for pointing me to the right place in the
documentation.
Searched the docs, but overlooked 'Serving static/media files'.
Who thought that there would be something about where to put my css
files?
Lame excuse, glad you helped me!
-benjamin
>
> meant to put this in there:
>
meant to put this in there:
http://www.djangoproject.com/documentation/static_files/
On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote:
> > Just to clarify what may be obvious...do you have the correct one
> > of these:
>
> > href=" {{ MEDIA_URL }}styles.css" <- what you wrote
> >
did you set the path to your in your URLconf, since you're using the
development server?
On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote:
> > Just to clarify what may be obvious...do you have the correct one
> > of these:
>
> > href=" {{ MEDIA_URL }}styles.css" <- what you wrote
> >
> Just to clarify what may be obvious...do you have the correct one
> of these:
>
> href=" {{ MEDIA_URL }}styles.css" <- what you wrote
> href="{{ MEDIA_URL }}styles.css" <- likely what you want
>
> without the extra space?
>
> -tim
fixed it, but it still won't load...
-benjamin
> href=" {{ MEDIA_URL }}styles.css" /> ,
>
> 'styles.css' won't load.
Just to clarify what may be obvious...do you have the correct one
of these:
href=" {{ MEDIA_URL }}styles.css" <- what you wrote
href="{{ MEDIA_URL }}styles.css" <- likely what you want
without the extra space?
-tim
Okay, I'll ask.
Perhaps it's a stupid supernoob-question, but I'll do it:
Where should my projects' stylesheets live?
I've made a 'media' directory beneath the projects' home folder, and I
put that into settings.py:
MEDIA_ROOT = '/path/to/my/project/media'
MEDIA_URL =
6 matches
Mail list logo