Fix URLconfs causing Django check warnings.
This commit is contained in:
parent
97899caf78
commit
b2e952f3b8
3 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||
]
|
||||
|
||||
|
|
|
@ -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)),
|
||||
]
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue