dynamicweb/urls: fetch project settings instead of project settings module
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
8a4a5fdd67
commit
bec5a7319d
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue