dynamicweb/urls: fetch project settings instead of project settings module

Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-11-02 14:45:04 -06:00
parent 8a4a5fdd67
commit bec5a7319d

View file

@ -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<path>.*)$',
'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,