On 9/12/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > Thanks Jay but that doesn't appear to make any difference. I wonder > is it how i have settings.py set up but nothing jumps out at me when > trying to find where I've gone wrong. Don't know if its important but > I'm on a mac and I'm trying to accomplish this through the built-in > dev server. Not much success with mod_python and fcgi setups either. > > just for the sake of it here's the important bit in the settings: > > MEDIA_ROOT = "/Users/whitebook/django/django_projects/myproject/static/" > MEDIA_URL = "http://localhost:8000/static/" > ADMIN_MEDIA_PREFIX = "/media/" > > and as i say in the top urls.py it reads > > (r'^static/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': > '/Users/whitebook/django/django_projects/myproject/static/', > 'show_indexes':True}), > > If changed that from my original post but doesn't make any difference! >
What happens if you navigate to http://localhost:8000/static? Also, try removing the "(?P<path>" part, try (r'^static/(.*)$' instead. Jay P. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---