Made the media delivery work

This commit is contained in:
Corey Oordt 2010-12-16 12:26:20 -05:00
parent b5c6482ffa
commit c55e56e48f

View file

@ -25,11 +25,11 @@ urlpatterns = patterns('',
(r'^static/categories/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': ROOT_PATH + '/categories/media/categories/'}),
(r'^static/editor/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': ROOT_PATH + '/editor/media/editor/',
'show_indexes':True}),
# (r'^static/editor/(?P<path>.*)$', 'django.views.static.serve',
# {'document_root': ROOT_PATH + '/editor/media/editor/',
# 'show_indexes':True}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': ROOT_PATH + '/example/static/'}),
{'document_root': os.path.join(ROOT_PATH, 'example', 'static')}),
)