urls.py: sert static s'il n'est pas déjà géré par ailleurs
This commit is contained in:
parent
faf852afc4
commit
40dfddb1e7
|
@ -55,4 +55,10 @@ else:
|
|||
{'template_name': 'logout.html'} if not settings.CAS_SERVER_URL else {}, name='logout'),
|
||||
)
|
||||
|
||||
# handle static files directly -- useless in production
|
||||
urlpatterns += patterns('',
|
||||
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
|
||||
'document_root': settings.STATIC_ROOT,
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
Reference in New Issue