force script name option

382 views
Skip to first unread message

luca72

unread,
Sep 18, 2009, 9:40:28 AM9/18/09
to Django users
Hello my web site is in www.mysite.net/django, so i have use the
"FORCE_SCRIPT_NAME = '/django/'" in the settings.py file.
So when i try to reach the admin site after the login he redirect my
in the correct url www.mysite.net/django/admin.
But when i try to reach others pages of the site where the login for
ex (richiedi) is required he redirect me at the folder :
http://www.mysite.net/accounts/login/?next=/django//richiedi/ and he
don't find the page.
can you help me to solve this problem.

Regards

Luca

Grant Livingston

unread,
Sep 18, 2009, 11:49:57 AM9/18/09
to django...@googlegroups.com
Would it not be better if you set your server to only execute django at /django/ and have a php redirect to redirect from mysite.net to mysite.net/django

I think what you're doing should work though...

luca72

unread,
Sep 18, 2009, 12:08:51 PM9/18/09
to Django users
Hello i have solved using this option on the setting file:

FORCE_SCRIPT_NAME="/django/"

LOGIN_REDIRECT_URL="/django/richiedi/"

LOGIN_URL="/django/accounts/login/"

Thanks

Luca
Reply all
Reply to author
Forward
0 new messages