Re: How to get site's root path in Django

2008-10-30 Thread bruno desthuilliers
On 28 oct, 07:38, "yuanyun.ken" <[EMAIL PROTECTED]> wrote: > Steve, Thanks for your expeditious reply. > because our apache server includes other apps, I can not deploy my app > to the root of the server. This won't fix http://code.djangoproject.com/ticket/8906, but there's at least one possibl

Re: How to get site's root path in Django

2008-10-30 Thread yuanyun.ken
hi, Karen, Thanks for your reply. I am sure I hit that problem, http://code.djangoproject.com/ticket/8906 and I wish some excellent gays have time to investigate, and provide a fix. For now, I would just include root path in LOGIN_URL and LOGOUT_URL variable. On Oct 29, 12:46 am, "Karen Tracey" <

Re: How to get site's root path in Django

2008-10-28 Thread Karen Tracey
On Tue, Oct 28, 2008 at 11:10 AM, yuanyun.ken <[EMAIL PROTECTED]> wrote: > > Graham, thanks for your kindly help. > > I know we don't need root url when configure url mapping. but it seems > that LOGIN_URL is somewhat special. > > When I set LOGIN_URL = '/login/' > accessing http://localhost/root_

Re: How to get site's root path in Django

2008-10-28 Thread yuanyun.ken
Graham, thanks for your kindly help. I know we don't need root url when configure url mapping. but it seems that LOGIN_URL is somewhat special. When I set LOGIN_URL = '/login/' accessing http://localhost/root_url/login/ is ok, but when I access some pages which need login first, I will got 404 e

Re: How to get site's root path in Django

2008-10-28 Thread Graham Dumpleton
On Oct 28, 2:24 am, "yuanyun.ken" <[EMAIL PROTECTED]> wrote: > Hi, all great Django users and developers, I have a little problem. > To make @login_required work, > I have to configure those in settings.py: > root_url = '/root_url/' > LOGIN_URL = root_url + '/login/' > LOGOUT_URL =  root_url + '

Re: How to get site's root path in Django

2008-10-27 Thread yuanyun.ken
Steve, Thanks for your expeditious reply. because our apache server includes other apps, I can not deploy my app to the root of the server. and I am sure, many Django apps are not deployed to server's root too. so there must be a way to handle this problem. --~--~-~--~~~---

Re: How to get site's root path in Django

2008-10-27 Thread Steve Holden
yuanyun.ken wrote: > Hi, all great Django users and developers, I have a little problem. > To make @login_required work, > I have to configure those in settings.py: > root_url = '/root_url/' > LOGIN_URL = root_url + '/login/' > LOGOUT_URL = root_url + '/logout/' > > But this is obviously not a go

How to get site's root path in Django

2008-10-27 Thread yuanyun.ken
Hi, all great Django users and developers, I have a little problem. To make @login_required work, I have to configure those in settings.py: root_url = '/root_url/' LOGIN_URL = root_url + '/login/' LOGOUT_URL = root_url + '/logout/' But this is obviously not a good idea, as it couples with projec