On Fri, 2007-03-02 at 06:52 -0800, Sambhav wrote: > Hi, > > I want to use this http://www.example.com/2007/mar/02/?time=2100 > instead of http://www.example.com/2007/mar/02/2100/ > > But when I use this in the template I get this- > http://ww.example.com/2007/mar/02/?time=2100/
What do you mean by "when I use this in a template"? Do you mean that the generated HTML contains the trailing slash in the URL, or that when you click on the link you are ultimately redirected to the trailing slash version? In the latter case, it is probably because you are using the APPEND_SLASH setting in the Django common middleware (it's on by default). The APPEND_SLASH directive is a little all-or-nothing in this respect, so you may need to disable it (and handle redirection to canonical URLs yourself -- see design-philosophy.txt and middleware.txt for what it is doing). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---