Loading...

Trailing Slash Issue With Django Running on Cherokee and uWSGI

Emilian F. Published on 01 June, 2012

I ran into a problem with Cherokee and uWSGI in that the trailing slash was not being appended to the path.

For example, domain.com/admin was being picked up by the URL definitions in urls.py, but domain.com/admin/ was not. I tried adding APPEND_SLASH to the settings.py file but that did not fix the issue. Turns out that there is a simple fix for this:

  • go to the "Handler" page / tab for the Cherokee vServers entry that you have setup for the domain
  • uncheck the "Check File" option
  • save your changes

Cherokee uWSGI Handler Screen Shot

That will get the URLs to function as expected.

Emilian F. Published on 01 June, 2012