From ef8cdeafeb61e8c5c3ed13e93a12393f852ddf00 Mon Sep 17 00:00:00 2001 From: Shgck Date: Fri, 26 Feb 2016 14:43:11 +0100 Subject: [PATCH] Fix wrong default page being about --- idre/urls.py | 3 +-- news/urls.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/idre/urls.py b/idre/urls.py index ee1a1c5..f640ca3 100644 --- a/idre/urls.py +++ b/idre/urls.py @@ -7,12 +7,11 @@ import idre.views import label.urls import news.urls - admin.autodiscover() urlpatterns = ( - [ url(r"^(?:about/)?$", idre.views.about_view, name = "about") ] + + [ url(r"^about/$", idre.views.about_view, name = "about") ] + label.urls.urlpatterns + news.urls.urlpatterns + [ url(r"^admin/", include(admin.site.urls)) ] diff --git a/news/urls.py b/news/urls.py index 8059445..e23ecb9 100644 --- a/news/urls.py +++ b/news/urls.py @@ -4,5 +4,5 @@ import news.views urlpatterns = [ - url(r"^news/$", news.views.articles_view, name = "news"), + url(r"^(?:news/)?$", news.views.articles_view, name = "news"), ]