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

2008-10-28 Thread Steve Holden
The answer to your question is the same as the first time you posted it, about fourteen hours previously. Please do not just repeat the same question - wait patiently for the answer, and if no answer comes in a couple of days then add more information to your request or otherwise change it to incr

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

2008-10-28 Thread Erik Allik
I don't think you need to even know the root URL as Django takes care of this automatically. Check the mod_python documentation for details. mod_wsgi and FastCGI deployment methods should take care of this transparently. Erik On 28.10.2008, at 8:28, yuanyun.ken wrote: > > Hi, all great Dj

How to get site's root url 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