Wednesday, June 27, 2007

setting.py & urls.py for /media/

ADMIN_MEDIA_PREFIX = '/admin_media/'

(r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/username/django/django_projects/project_name/media'}),

MEDIA_ROOT = '/Users/username/django/django_projects/project_name/media/'
MEDIA_URL = '/media/'


No comments: