On Sat, Feb 19, 2011 at 2:58 PM, The_Legend <rohitkonde...@gmail.com> wrote: > I tried a lot, found another post with same some, but without luck :( > > till now --- > > project name --- library--- c:\library\ > > C:\library>dir > > Directory of C:\library > > 02/19/2011 07:29 PM <DIR> mainapp > 02/19/2011 11:26 AM 557 manage.py > 02/19/2011 08:16 PM <DIR> media > 02/19/2011 08:19 PM 3,537 settings.py > 02/19/2011 08:19 PM 2,215 settings.pyc > 02/19/2011 07:58 PM <DIR> templates > 02/19/2011 08:17 PM 832 urls.py > 02/19/2011 08:18 PM 655 urls.pyc > 02/19/2011 11:26 AM 0 __init__.py > 02/19/2011 11:30 AM 120 __init__.pyc > > > in settings.py i added ---- > > MEDIA_ROOT = 'C:/library/media/' > DOCUMENT_ROOT = 'C:/library/media/' > MEDIA_URL = '' > ADMIN_MEDIA_PREFIX = '/amedia/' > > > in my urls.py --- > > (r'^home/$','library.mainapp.views.display'), > (r'^media/(?P<path>.*)$','django.views.static.serve', > { 'document_root' : '/media/'} ),
document_root is a file location, not a url location. http://docs.djangoproject.com/en/1.2/howto/static-files/#how-to-do-it 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.