Switch to using staticfiles app for serving, well, static files

This is required by the new admin interface
This commit is contained in:
Magnus Hagander
2013-05-25 14:16:07 -04:00
parent 5d608f1fe4
commit 2ea607b942
2 changed files with 5 additions and 7 deletions

View File

@ -135,9 +135,6 @@ urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
# This should not happen in production - serve by the webserver natively!
url(r'^media/(.*)$', 'django.views.static.serve', {
'document_root': '../media',
}),
url(r'^(favicon.ico)$', 'django.views.static.serve', {
'document_root': '../media',
}),