I am using ModWsgi to employ my app. I have a WSGIScript alias which points to my CMS project.
WSGIScriptAlias / cmsapp "/home/hari/dev/cmsproj/apache/django.wsgi" In my settings also really set USE_I18N , And I'm using the Digengo-CM Multilingual Middleware
I'll change the admin login page to http: // localhost / cmsapp / admin / . When I submit my credentials, I arrive at the http: // localhost / en / admin / page as 404. Ideally I should go to http: // localhost / cmsapp / en / admin / - Attempting to get to this URL manually takes me to the admin panel. Similarly, when I'm trying to logout from the admin panel, I redirected to http: // localhost / en / cmsapp / admin / logout / goes. If I extract 'n', then I have successfully logged out. It's really weird that I think that for these URLs, it attaches the language code after the domain name, instead of adding it to the actual root. Other related URLs like http: // localhost / cmsapp / en / admin / cms / page / and http: // localhost / cmsapp / en / admin / auth / user / Work perfectly. Any suggestions? Do I have any missing settings?
Set LOGIN_URL and LOGOUT_URL in the settings file.
For whatever reason, they do not keep the mount point of the application in mind and it has to be linked to those settings.
Comments
Post a Comment