From 7a713041aa921727e64cde1bbb280b7547c7114f Mon Sep 17 00:00:00 2001 From: rscnt Date: Wed, 20 May 2015 23:30:03 -0600 Subject: [PATCH] urls: added django-cms urls to project urls.py Signed-off-by: rscnt --- dynamicweb/urls.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index dc7bef66..4f592f58 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -1,11 +1,9 @@ from django.conf.urls import include, url from django.contrib import admin -urlpatterns = [ - # Examples: - # url(r'^$', 'dynamicweb.views.home', name='home'), - # url(r'^blog/', include('blog.urls')), - +urlpatterns = i18n_patterns('', url(r'^admin/', include(admin.site.urls)), - url(r'^digital.glarus/', include('digital_glarus.urls', namespace="digital_glarus")), -] + url(r'^digital.glarus/', include('digital_glarus.urls', + namespace="digital_glarus")), + url(r'^', include('cms.urls')), +) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)