Pike/elmo — comment on commit e1fac029c335d58650a4ea853dea5f2ecd0357be
File: apps/pushes/urls.py line 5
By peterbe:

That's just how it's done. See for example: https://docs.djangoproject.com/en/dev/topics/http/urls/#example

Come to think of it, the only advantages I can find are:

* a trailing slash means you can have a form with `action=""` so that when you submit the form it reloads the same URL but as `POST`. Otherwise you have to repeat the URL in the `action` attribute and that ties you down to one submission URL per form snippet.

* Django always appends a trailing slash to unfound lookups and tries again. E.g. /owfjwofijweffd is redirected to /owfjwofijweffd/ so by being consistent and always using a trailing slash you avoid the excess redirect on (or just before rather) 404 errors.