Changes to serve static admin files for Django 1.5.4
This commit is contained in:
parent
dfc3ccea45
commit
28095ac397
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user