thauber / django-schedule

A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

catch-all url masks 404's and blocks 301's

ccg opened this issue · comments

It appears that the final url in schedule/urls.py -- url(r'$', object_list, info_dict, name='schedule') -- matches any url. As a result, you never get a 404. Also, Django can redirect non-trailing-slash URLs to the trailing-slash URL (to avoid duplication), but that is inhibited too, because the catch-all url matches everything. The result is that /calendar/year/slug and /calendar/year/slug/ return different content, when the former should either redirect to the latter or return a 404.

Oops, duplicate of issue #33.