Static url path configurable : update your settings.

This commit is contained in:
Florent Dionisi
2010-01-25 09:14:04 +01:00
parent 35635e5d41
commit 0b71542461
+11 -2
View File
@@ -33,6 +33,15 @@ if menus != ():
if settings.DEBUG:
urlpatterns += patterns(
'',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/tonio/projets/devel/mailng/static'})
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOTDIR})
)
# Stats
if 'mailng.extensions.stats' in settings.INSTALLED_APPS:
urlpatterns += patterns(
'',
(r'^img/stats/(?P<path>.*)/$', 'django.views.static.serve',
{'document_root': settings.IMG_ROOTDIR})
)