1
0
Fork 0

Fix wrong default page being about

This commit is contained in:
Shgck 2016-02-26 14:43:11 +01:00
parent d683b994c2
commit ef8cdeafeb
2 changed files with 2 additions and 3 deletions

View file

@ -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)) ]

View file

@ -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"),
]