python-gsoc / python-blogs

Python Software Foundation GSoC Blog Platform. This system was used until 2024 but is no longer maintained.
http://python-gsoc.org/
GNU Affero General Public License v3.0
41 stars 60 forks source link

GSoC 2019 - Routing issues #25

Closed botanicvelious closed 5 years ago

botanicvelious commented 5 years ago

When running runserver it complains...

Performing system checks...

System check identified some issues:

WARNINGS:
?: (urls.W001) Your URL pattern '^blog/$' [name='article-list'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<slug>\w[-\w]*)/$' [name='article-detail'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/$' [name='article-list-by-year'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/$' [name='article-list-by-month'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/$' [name='article-list-by-day'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<pk>\d+)/$' [name='article-detail'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$' [name='article-detail'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<slug>\w[-\w]*)/$' [name='article-detail'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/(?P<year>\d{4})/(?P<slug>\w[-\w]*)/$' [name='article-detail'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/author/(?P<author>\w[-\w]*)/$' [name='article-list-by-author'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/category/(?P<category>\w[-\w]*)/$' [name='article-list-by-category'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/category/(?P<category>\w[-\w]*)/feed/$' [name='article-list-by-category-feed'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/feed/$' [name='article-list-feed'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/search/$' [name='article-search'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/tag/(?P<tag>\w[-\w]*)/$' [name='article-list-by-tag'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
?: (urls.W001) Your URL pattern '^blog/tag/(?P<tag>\w[-\w]*)/feed/$' [name='article-list-by-tag-feed'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.

System check identified 16 issues (0 silenced).
February 14, 2019 - 23:58:19
Django version 2.1.7, using settings 'gsoc.settings'
sounak98 commented 5 years ago

@botanicvelious these routes are generated by aldryn-newsblog. Recent versions of django has added some checks for the urls and these urls fail these checks. So clearly the update caused this.

botanicvelious commented 5 years ago

I reported it as issue #515 on their side. If anyone wants to fix it for them go for it!

botanicvelious commented 5 years ago

Fixed upstream