Re: CommonMiddleware doubt

2013-02-25 Thread Odagi
Thanks for your answer. I made my own research and seem to be OK to remove trailing slashes, Google do it in some of their sites ;) The recommendation is: 1. choose one option for canonical URLs option a. http://www.domain.com/resource option b.http://www.domain.com/resource/ 2. The

Re: CommonMiddleware doubt

2013-02-25 Thread Bill Freeman
You can make your own middleware. That's not a big deal, and you can start with a clone of the existing middleware. Do investigate what reverse and the url template tag are going to do with these views. I don't see any reason that you shouldn't remove trailing slashes, but someone else may have

CommonMiddleware doubt

2013-02-23 Thread Odagi
Hello, according to https://docs.djangoproject.com/en/dev/ref/settings/#append-slash, using CommonMiddleware and APPEND_SLASH=True, if the request URL does not match any of the patterns in the URL