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 type http://things.a.com:81/, the page is redirect to login html page. But the automatically appended "next" parameter is wrong, like this http://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 URL http://things.a.com:81/life is working fine. Another problem, I try to change default login URL in setting.LOGIN_URL='/login'. Then the root URL jumps to http://things.a.com:81/django/login/?next=/django/, but expected is http://.../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 django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---