]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/urls.py
Update for newer django
[sommitrealweird.git] / sommitrealweird / urls.py
index 73137930f7948749e5578e9f9a495046bcff7fe3..bcfc7f0fb98d13d03a551342e6cd26160683111a 100644 (file)
@@ -23,7 +23,7 @@ urlpatterns = [
     # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
 
     # Uncomment this for admin:
-    re_path(r'^$', bpcms.views.document_view, {'slug': 'index'}),
+    re_path(r'^$', bpcms.views.document_view, {'path': 'index'}),
     re_path(r'^media/(?P<path>.*)$', django.views.static.serve, {'document_root': MEDIA_ROOT, 'show_indexes': True}),
     re_path(r'^static/(?P<path>.*)$', django.views.static.serve, {'document_root': STATIC_ROOT, 'show_indexes': True}),
     re_path(r'^admin/', admin.site.urls),