Django doesn't serve media (images, css, etc.). The development server
handles the media necessary for the admin interface, but that's just
for production. You'll need a regular web server (Apache, lighttpd,
etc.) to serve your media. Once you've got that going, you'll need to
update the MEDIA_ROOT and MEDIA_URL settings in your Django settings
file (see http://www.djangoproject.com/documentation/settings/#media-root
).

Hope this helps!

Wilson

On 3/4/06, thebubblejungle <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm fairly new to Django and have a project at University where I am
> creating a league table manager with a web interface. I'm having
> problems viewing CSS in my templates online i.e.
> http://localhost:8000/leaguemanager/ shows an index page which links to
> style.css, but in the server window I'm seeing a 404 2189 error.
>
> My directory setup is:
>
> /templates
> ../leaguemanager
> ....style.css
> ....base.html
> ....index.html
> /ourproject
> ../leaguemanager
> ..../models
>
> index.html inherits from base.html, which has references to style.css.
> Everything else seems to be working OK, just not being able to locate
> the style.css file.
>
> Any help would be appreciated,
>
> Mark Hawker
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to