Opened 10 years ago

Closed 10 years ago

#602 closed defect (fixed)

Django error when getting the root of the site with FCGI

Reported by: wojtek@… Owned by: adrian
Component: Core (Other) Version:
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I'm running lighttpd with FCGI and redirecting all traffic to Django-fcgi using the "/" prefix in the lighttpd fcgi configuration.

When I go to I get the following error:

   45         # trailing slash or a file extension.
   46         print old_url
   47         if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]):
   48             new_url[1] = new_url[1] + '/'
   49         if new_url != old_url:
global settings = <module 'django.conf.settings' from '/opt/tomcat/django/conf/settings.pyc'>, settings.APPEND_SLASH = True, old_url = ['', ''], ].split undefined

When I print out the old_url variable it contains:
['', ]

I don't know an easy fix for this but you guys probably do :)

Change History (2)

comment:1 Changed 10 years ago by wojtek@…

Apparently the first part of the path gets 'eaten' somewhere so '/' ends up as , and '/foo/bar/' ends up as '/bar/'

comment:2 Changed 10 years ago by wojtek@…

  • Resolution set to fixed
  • Status changed from new to closed

Ok it came out to be lighttpd strangeness.

Note: See TracTickets for help on using tickets.
Back to Top