django-localeurl together with FORCE_SCRIPT_NAME not working
I'm currently working on a site where multiple locales will be served under different URLs using django-localeurl. localeurl has always worked for me before when served directly at the top level but this time around I have to use settings.FORCE_SCRIPT_NAME because it needs to be served under a sub-path.
The problem is that when the user enters the site he is redirected to http://www.example.com/en/ and not http://www.example.com/site/en/ as he should be. Serving the site under http://www.example.com/site/ works perfectly when I disable localeurl.
Any suggestions as开发者_开发问答 to how I could fix this would be greatly appreciated as I'm close to tearing my hair out any second now!
There is an open ticket in locale-url for this issue. It also has a proposed patch that fixes it.
精彩评论