Permalink
Browse files

setup urls.py for serve staticfiles on DEBUG

  • Loading branch information...
1 parent bc6369b commit 7c04b053ddfc0ce81ef30060f4c8398b84f69a3e @tzangms committed Dec 10, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 herokutest/urls.py
View
@@ -1,4 +1,7 @@
from django.conf.urls.defaults import patterns, include, url
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+from django.conf.urls.static import static
+from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
@@ -8,3 +11,6 @@
(r'^$', 'app.views.index'),
url(r'^admin/', include(admin.site.urls)),
)
+
+urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+urlpatterns += staticfiles_urlpatterns()

0 comments on commit 7c04b05

Please sign in to comment.