Fix wrong default page being about
This commit is contained in:
parent
d683b994c2
commit
ef8cdeafeb
|
@ -7,12 +7,11 @@ import idre.views
|
||||||
import label.urls
|
import label.urls
|
||||||
import news.urls
|
import news.urls
|
||||||
|
|
||||||
|
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = (
|
urlpatterns = (
|
||||||
[ url(r"^(?:about/)?$", idre.views.about_view, name = "about") ] +
|
[ url(r"^about/$", idre.views.about_view, name = "about") ] +
|
||||||
label.urls.urlpatterns +
|
label.urls.urlpatterns +
|
||||||
news.urls.urlpatterns +
|
news.urls.urlpatterns +
|
||||||
[ url(r"^admin/", include(admin.site.urls)) ]
|
[ url(r"^admin/", include(admin.site.urls)) ]
|
||||||
|
|
|
@ -4,5 +4,5 @@ import news.views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r"^news/$", news.views.articles_view, name = "news"),
|
url(r"^(?:news/)?$", news.views.articles_view, name = "news"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue