From bec5a7319d7a9b2c3836bd403bf21724cce2aa92 Mon Sep 17 00:00:00 2001 From: rscnt Date: Mon, 2 Nov 2015 14:45:04 -0600 Subject: [PATCH] dynamicweb/urls: fetch project settings instead of project settings module Signed-off-by: rscnt --- dynamicweb/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index 10291fac..e42d0772 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -4,7 +4,7 @@ from django.contrib import admin from django.conf.urls.i18n import i18n_patterns from django.conf.urls.static import static -from dynamicweb import settings +from django.conf import settings from hosting.views import railshosting urlpatterns = [ @@ -25,6 +25,7 @@ urlpatterns += i18n_patterns('', if settings.DEBUG: urlpatterns += patterns('', + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT), url(r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT,