Fix URLconfs causing Django check warnings.

This commit is contained in:
Ben Sturmfels 2021-12-17 18:14:50 +11:00
parent 97899caf78
commit b2e952f3b8
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ urlpatterns = [
url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', BlogDayArchiveView.as_view(**info_dict)),
url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', BlogMonthArchiveView.as_view(**info_dict)),
url(r'^(?P<year>\d{4})/$', BlogYearArchiveView.as_view(**info_dict)),
url(r'^/?$', custom_index, dict(info_dict, paginate_by=4)),
url(r'^$', custom_index, dict(info_dict, paginate_by=4)),
url(r'^query/$', query),
]

View file

@ -36,5 +36,5 @@ urlpatterns = [
url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', NewsDayArchiveView.as_view(**info_dict)),
url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', NewsMonthArchiveView.as_view(**info_dict)),
url(r'^(?P<year>\d{4})/$', NewsYearArchiveView.as_view(**info_dict)),
url(r'^/?$', listing, dict(info_dict, paginate_by=6)),
url(r'^$', listing, dict(info_dict, paginate_by=6)),
]

View file

@ -37,8 +37,8 @@ urlpatterns = [
url(r'^feeds/news/?$', feeds.PressReleaseFeed()),
url(r'^feeds/omnibus/?$', feeds.OmnibusFeed()),
url(r'^feeds/?$', feeds.view),
url(r'^news(?:/|$)', include('conservancy.apps.news.urls')),
url(r'^blog(?:/|$)', include('conservancy.apps.blog.urls')),
url(r'^news/', include('conservancy.apps.news.urls')),
url(r'^blog/', include('conservancy.apps.blog.urls')),
# formerly static templated things... (dirs with templates)
url(r'^error/(40[134]|500)(?:/index\.html|/|)$', static_views.handler),
url(r'^error', static_views.index),