Re: reverse() and Django with fastcgi behind lighty with sockets
On Oct 12, 1:32 am, sleepyjames wrote: > you need to set FORCE_SCRIPT_NAME in your settings. > > http://docs.djangoproject.com/en/dev/ref/settings/#force-script-name Missed that - thanks! Almad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: reverse() and Django with fastcgi behind lighty with sockets
you need to set FORCE_SCRIPT_NAME in your settings. http://docs.djangoproject.com/en/dev/ref/settings/#force-script-name On Oct 11, 11:07 pm, Almad wrote: > Hi, > > I'm deploying Django behind lighttpd and have official-docs-like > config: > > fastcgi.server = ( > "/django.fcgi" => > (( > "socket" => "/path/to.socket", > "check-local" => "disable", > )) > ) > > alias.url += ( > "/media" => "/path/to/app/media/" > ) > > url.rewrite-once = ( > "^(/media.*)$" => "$1", > "^(/.*)$" => "/django.fcgi$1", > ) > > However, when I'm redirecting user using reverse() (like, {% url login > %}, user gets redirected to /django.fcgi/login/ instead of /login/. > > Anyone else having this issue? Any reasonable solution/workaround? > > Almad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
reverse() and Django with fastcgi behind lighty with sockets
Hi, I'm deploying Django behind lighttpd and have official-docs-like config: fastcgi.server = ( "/django.fcgi" => (( "socket" => "/path/to.socket", "check-local" => "disable", )) ) alias.url += ( "/media" => "/path/to/app/media/" ) url.rewrite-once = ( "^(/media.*)$" => "$1", "^(/.*)$" => "/django.fcgi$1", ) However, when I'm redirecting user using reverse() (like, {% url login %}, user gets redirected to /django.fcgi/login/ instead of /login/. Anyone else having this issue? Any reasonable solution/workaround? Almad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---