I am using Django with fastcgi and I cannot get the append slashes middleware to work (I have CommonMiddleware installed in my settings folder, and APPEND_SLASH is true). I have come across a number of posts where append slashes breaks their installating, but for mine it just does not append the slash. For example, when I go to http://www.hostingsite.com/mydir/home, I get a 404 with the request URL http://www.hostingsite.com/mydir/script.fcgi/home (http:// www.hostingsite.com/mydir/home/ works fine). How can I get append slashes to work?
The .htaccess in mydir is below, along with my fastcgi file. ******************** .htaccess ******************** AddHandler fastcgi-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /mydir/cgi-bin/script.fcgi/$1 [QSA,L] ******************** script.fcgi ******************** #!/usr/bin/python import sys, os # Add a custom Python path. sys.path.insert(0, "/path/to/mydir/django") sys.path.insert(1, "/path/to/mydir/cgi-bin/djangoprojects/") # Switch to the directory of your project. os.chdir("/path/to/mydir/cgi-bin/djangoprojects/lsjumb") # Set the DJANGO_SETTINGS_MODULE environment variable. os.environ['DJANGO_SETTINGS_MODULE'] = "mysite.settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---