eculver wrote: > I know this one has been covered pretty well, and I'm not a "total" > newb to django, but something alludes me here. Why when I put: > > if settings.DEBUG: > urlpatterns += patterns('', > (r'^media/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': settings.MEDIA_ROOT}, > ) > > in my urls.py does it fail and output: > > Page not found: /var/lib/python-support/python2.6/django/contrib/admin/ > media/css/master.css > > Why is it even looking in /var/lib/python-support/python2.6/django/ > contrib/admin/ if I've configured MEDIA_ROOT in my settings.py to an > absolute path to my project's media source... just seems strange? Any > ideas would be greatly appreciated.
Had the same problem on a project I was just working on. I think I had to change the settings.ADMIN_MEDIA_PREFIX to some other location because it was superseding my settings.MEDIA_ROOT -tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---