我使用相同的方法在一个域下托管多个django cms网站,例如' example.com' .example.com是我的主要项目,example.com / blog是我的子项目。两者都是独立的项目。但是当我登录example.com/blog时,它的URL将自动重定向到example.com。我曾经设置了LOGIN_REDIRECT_URL和SESSION_COOKIE,但没有用。任何人请帮助我。
WSGIDaemonProcess project3 python-home=/home/nidhinjames/project3/virtualenv2.7 python-path=/home/nidhinjames/project3/project3
WSGIScriptAlias /blog /home/nidhinjames/project3/project3/project3/wsgi.py process-group=project3 application-group=%{GLOBAL}
Alias /blog/static /home/nidhinjames/project3/project3/static
WSGIDaemonProcess school python-home=/home/nidhinjames/djangocms/myvenv python-path=/home/nidhinjames/djangocms/school-module
WSGIScriptAlias /school /home/nidhinjames/djangocms/school-module/school_module/wsgi.py process-group=school application-group=%{GLOBAL}
Alias /school/static /home/nidhinjames/djangocms/school-module/districts/static
WSGIDaemonProcess project python-home=/home/nidhinjames/project1/virtualenv2.7 python-path=/home/nidhinjames/project1/project1
WSGIScriptAlias / /home/nidhinjames/project1/project1/project1/wsgi.py process-group=project application-group=%{GLOBAL}