OK, answer myself:

setting.FORCE_SCRIPT_NAME=""

On Jun 18, 9:12 pm, steveneo <[email protected]> wrote:
> Anyone can answer me? I am still stuck here.... Thanks.
>
> On Jun 17, 11:19 pm, steveneo <[email protected]> wrote:
>
>
>
> > I am quite new on all these things - lighttpd(1.4.18), django(ver
> > 1.0.2 final) and python:(.  My lighttpd and django are ready. One
> > problem I got is the login next URL is always append to lighttpd
> > rewrite URL. Here is detail of my question:
>
> > My lighttpd uses fastcgi for multiple sites:
> > =====================================
> > $HTTP["host"] =~ "things\.a\.com:81$" {
>
> > fastcgi.server = ( "/django" =>
> > (( "socket" => "/tmp/fastcgi.socket",
> >    "check-local" => "disable"
> > ))
> > )
>
> > }
>
> > url.rewrite-once = (
> >  ....
> >    "^/(.*)$" => "/django/$1"
> > )
> > =====================================
>
> > In urls.py
> > =====================================
> >   (r'^accounts/login/$', 'django.contrib.auth.views.login'),
> >     (r'^$', 'things.views.myview'),
> >     (r'^life$', 'things.views.life'),
> > =====================================
>
> > things.views.myview is login required.   When I typehttp://things.a.com:81/,
> > the page is redirect to login html page. But the automatically
> > appended "next" parameter is wrong, like 
> > thishttp://things.a.com:81/accounts/login/?next=/django/-
> > the lighttpd rewrite url is append here! But I believe "next"
> > parameter should be empty.
>
> > If the url does not need to  login, for example, "things.views.life",
> > the URLhttp://things.a.com:81/lifeisworking fine.
>
> > Another problem, I try to change default login URL in
> > setting.LOGIN_URL='/login'.  Then the root URL jumps 
> > tohttp://things.a.com:81/django/login/?next=/django/, but expected 
> > ishttp://.../login/?
>
> > Is my lighttpd or my django setting problem? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to