On 1/3/07, Mihai Preda <[EMAIL PROTECTED]> wrote:
If the initial URL doesn't end with a slash, and it is not found in urlpatterns, a new URL is formed by appending a slash at the end. If this new URL is found in urlpatterns, then an HTTP-redirect is returned to this new URL; otherwise the initial URL is processed as usual.
Hm. My first impression is that I like it, mostly for the reasons you've outlined; I had to turn off APPEND_SLASH when I decided I didn't want trailing slashes on individual entries on my weblog, because it would add them regardless of whether the slash-less URL matched anything. I also like that you've suggested not doing the redirect unless the "slashified" URL would actually match something; being able to just 404 immediately on something that won't match is nice. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
