A couple of things to check - what are the permissions on
dispatch.fcgi?
It needs to be executable, e.g. -rwxr-xr-x

Also, make sure it does not have DOS mode CR-LF

And, do you have debug set in your settings.py?


On Jul 19, 2:04 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> As I said, I tried to follow the tutorial:
>
> In this directory
>
> /home/walterbyrd/django.niche-software.com
>
> I have these two files:
>
> 1. dispatch.fcgi
> sys.path += ['/home/walterbyrd/django.niche-software/django/
> django_src']
> sys.path += ['/home/walterbyrd/django.niche-software/django/
> django_projects']
>
> from fcgi import WSGIServer
> from django.core.handlers.wsgi import WSGIHandler
> import os
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
> WSGIServer(WSGIHandler()).run()
>
> ---------------
>
> 2. dispatch.fcgi
> #!/usr/bin/env python
>
> import sys
>
> sys.path += ['/home/walterbyrd/django.niche-software/django/
> django_src']
> sys.path += ['/home/walterbyrd/django.niche-software/django/
> django_projects']
>
> from fcgi import WSGIServer
> from django.core.handlers.wsgi import WSGIHandler
> import os
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
> WSGIServer(WSGIHandler()).run()
> [niagara]$ ls -a
> .  ..  .htaccess  dispatch.fcgi  django  fcgi.py  fcgi.pyc
> [niagara]$ cat .htaccess
> RewriteEngine On
> RewriteBase /
> RewriteRule ^(media/.*)$ - [L]
> RewriteRule ^(admin_media/.*)$ - [L]
> RewriteRule ^(dispatch\.fcgi/.*)$ - [L]
> RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to