On Thu, Feb 24, 2011 at 1:39 AM, Roy Smith <r...@panix.com> wrote: > I'm running r15624, OSX-10.6.5, Python-2.6.1 > > In my top-level urls.py, I have: > > # Serve static > files > (r'^static/(?P<path>.*)$', > 'django.views.static.serve', > {'document_root': '/Users/roy/dev/try.django/mysite/static', > 'show_indexes': True}), > > If I go to http://localhost:8000/static/, I see a listing of my only > static file: > > Index of / > site.css > > but when I click on the site.css link, I get a 404 ('site.css' could > not be found). Any ideas what might be going wrong? >
I suspect it is trying to load /Users/roy/dev/try.django/mysite/staticsite.css'. Try adding a '/' to the end of your document root, or capturing the initial '/' as part of the path in your urlconf. Cheers Tom -- 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.