Hi,
I try to bring a django-project online via fastcgi, but i get
following error:
You don't have permission to access /home/myusername/public_html/
ultimateWeimar/django.fcgi/ on this server.
my .htaccess looks like this
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteRule ^(media/.*) - [L]
RewriteCond %{REQUEST_URI} !(django.fcgi)
RewriteRule ^(.*)$ django.fcgi/$1 [L]
and django.fcgi like this:
!/usr/bin/python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/myusername/public_html")
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "ultimateWeimar.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(["method=threaded", "daemonize=false"])
if i execute ./django.fcgi, i get following traceback:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 1112, in handler
result = self.application(environ, start_response)
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/
wsgi.py", line 148, in __call__
response = self.get_response(request.path, request)
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/
base.py", line 59, in get_response
response = middleware_method(request)
File "/usr/local/lib/python2.4/site-packages/django/middleware/
common.py", line 40, in process_request
if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.'
not in old_url[1].split('/')[-1]):
IndexError: string index out of range
I am using debian with apache 2.0.55 and fastcgi 2.4.2
Does anybody know, what is wrong?
Alternatively: Is there a way, to run the development server also
without an terminal-window where it can print its messages?
Thanks, Manuel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---