You may want to try running your fastcgi daemon via command line,

This is the exact command that I am using at production:
python manage.py runfcgi daemonize=false method=threaded
host=127.0.0.1 port=9001

Tx

--
Shamail Tayyab
Blog: http://shamail.in/blog

On Dec 22, 6:52 pm, Richard Brosnahan <[email protected]> wrote:
> Hi all,
>
> I'm new to django but not new to Python. My goal is to build a web site using 
> django, replacing an old, tired php framework.
>
> The django 1.2.3 tutorials were fine. I got the basics of my site working 
> locally, after going thru the entire tutorial. Before going any further, I 
> wanted to see if I could get that same basic tutorial site going on my 1and1 
> host. If I can't, I may have to go with drupal.
>
> The django 1and1 site is a no go.
>
> I've installed my own Python 2.7.1, since the default version on 1and1 is 
> extremely old.
>
> 1and1 does provide fcgi, by default. Indeed, my .htaccess file and 
> mysite.fcgi work to a point. The script is using my version of python. The 
> .fcgi script runs until I get to the line where I try to execute runfastcgi.
>
> from django.core.servers.fastcgi import runfastcgi
> runfastcgi(method="threaded", daemonize="false")
>
> I'm using the docs provided with the svn version of django. In particular, 
> this page:
> file:///work/django-trunk/docs/_build/html/howto/deployment/fastcgi.html
>
> These docs are those issued with the version of django I'm using, and that's 
> up to date as of yesterday (via svn checkout).
>
> What's the problem?
>
> I get an error saying "method" is not defined, and "daemonize" is not 
> defined. Further, those parameters don't match the method in the source:
>
> fastcgi.py:89:
> def runfastcgi(argset=[], **kwargs):
>
> So, I'm trying to pass (method="threaded", daemonize="false") to a method 
> which expects (argset=[], **kwargs). No wonder it 'splodes.
>
> Can anyone direct me to a way to get this to work? What am I missing?
>
> Thanks in advance
>
> --
> Richard Brosnahan

-- 
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?hl=en.

Reply via email to