From 9d9f833c6e322a1dc8bbf653a5f615af7386bee9 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Mon, 19 Oct 2015 15:06:37 +0200 Subject: [PATCH] Fix urlconf --- djangocms_blog/urls.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/djangocms_blog/urls.py b/djangocms_blog/urls.py index 0a76e27..6a26b46 100644 --- a/djangocms_blog/urls.py +++ b/djangocms_blog/urls.py @@ -23,8 +23,7 @@ def get_urls(): detail_urls = get_urls() -urlpatterns = patterns( - '', +urlpatterns = [ url(r'^$', PostListView.as_view(), name='posts-latest'), url(r'^feed/$', @@ -33,7 +32,6 @@ urlpatterns = patterns( PostArchiveView.as_view(), name='posts-archive'), url(r'^(?P\d{4})/(?P\d{1,2})/$', PostArchiveView.as_view(), name='posts-archive'), -) + detail_urls + [ url(r'^author/(?P[\w\.@+-]+)/$', AuthorEntriesView.as_view(), name='posts-author'), url(r'^category/(?P[\w\.@+-]+)/$', @@ -42,6 +40,6 @@ urlpatterns = patterns( TaggedListView.as_view(), name='posts-tagged'), url(r'^tag/(?P[-\w]+)/feed/$', TagFeed(), name='posts-tagged-feed'), -] +] + detail_urls BlogAppConfig.setup()