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 cf9a9f082a
commit ca3031dde2

View file

@ -4,7 +4,7 @@ from django.contrib import admin
from django.conf.urls.i18n import i18n_patterns from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static from django.conf.urls.static import static
from dynamicweb import settings from django.conf import settings
from hosting.views import railshosting from hosting.views import railshosting
urlpatterns = [ urlpatterns = [
@ -25,6 +25,7 @@ urlpatterns += i18n_patterns('',
if settings.DEBUG: if settings.DEBUG:
urlpatterns += patterns('', urlpatterns += patterns('',
static(settings.STATIC_URL, document_root=settings.STATIC_ROOT),
url(r'^media/(?P<path>.*)$', url(r'^media/(?P<path>.*)$',
'django.views.static.serve', { 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT, 'document_root': settings.MEDIA_ROOT,