Hi there I'm also somewhat new to Django and the mailing list, so somebody else probably has a better solution.
However, here's the solution I found to this problem: http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs I hope it helps. Please note the disclaimer on that page, as I have no idea whether you're in a dev or prod environment. Cheers, Andrew 2009/1/12 pyramid...@gmail.com <pyramid...@gmail.com> > > Im trying to get the template to load the CSS, but it does not load, > the server output shows a 404. > > in templates directory i have > > /default/layout.html (this is the website layout) > /articles/index.html (the template defining blocks to replace in the > template) > > I've tried a few things, im not real sure where to put the css and how > to reference the location properly > > layout.html: > > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1"> > <link rel=StyleSheet href={% block style %} "stylesheet.css" {% > endblock %} type="text/css"> > <title> {% block title %} {% endblock %} </title> > </head> > > index.html: > > {% block style %} "stylesheet.css" {% endblock %} > > > which results in "GET /articles/stylesheet.css HTTP/1.1" 404 > > the stylesheet.css is actually in the same location as index.html. > > > preferably i dont want the css file there but in a global location, > can someone tell me whats going on here? > thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---