Changes to serve static admin files for Django 1.5.4

This commit is contained in:
Doug Blank 2013-11-23 08:16:52 -05:00
parent dfc3ccea45
commit 28095ac397

View File

@ -57,6 +57,12 @@ urlpatterns += patterns('',
{'document_root': IMAGE_DIR, {'document_root': IMAGE_DIR,
'show_indexes': True}, 'show_indexes': True},
), ),
# Django 1.5.4
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/usr/share/pyshared/django/contrib/admin/static/',
'show_indexes': True},
),
# Django 1.5.4
) )
# The rest will match views: # The rest will match views: