Friday, December 26, 2014

Re: Django url issues, append slash and case insensitvity


waitlist/add_account/ redirecting to waitlistadd_account/ is quite odd to me. Could it simply be a bad cached 301? What does curl -i http://yourdomain/wailtlist/add_account/ say?

Not sure about the case insensitivity. I've never tried it, but can't think of any side effects.


On Tuesday, December 23, 2014 12:45:33 PM UTC-6, pythonista wrote:
I am having some issues with trailing slashes.

The application is working fine from my local machine whether I add a trailing slash or not.

It is not working as expected on the servers.  The link is being redirected to localhost for some reason.

I thought that SLASH_APPEND= True was on by default in the file.

1. I can add that to the settings file.
2.  I can add    waitlist/?'                                     ( ?)
to each url.  

On my machine the url router goes to the correct page, but it now is missing the /

now becomes 

waitlistadd_account/    (the middle /   is missing, but the code seems to be working.)

Any help would be appreciated.

While I am on a similar subject,

to make the request case insensitive, if I make the above call like this to make it case insensitive, is this the best way, are there any side effects of this approach?


Thanks in advance.

We are using nginx, is there any way to code the case insensitivity piece in there?



You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment