LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > Ok, so how put django to work? I try early info.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-15-2008, 01:58 PM
mamcx mamcx is offline
New Member
 
Join Date: Feb 2008
Posts: 7
Default Ok, so how put django to work? I try early info.

I have the most recent trunk of django. I read the info on this forum and of the wiki.

However, I keep getting

503 Service Unavailable

And this is the error:

2008-02-15 21:51:21.670 ERROR execle() failed with errno=13, when try to start Fast CGI application: /home/d9a402a6/jhonWeb/paradondevamos/django-fcgi.py!
2008-02-15 21:51:21.778 INFO Remove pid: 3503
2008-02-15 21:51:21.778 INFO Pid: 3503 associated with [Paradonde]
2008-02-15 21:51:21.778 INFO [Paradonde] pid list size: 0, pid stop list size: 0
2008-02-15 21:51:21.778 NOTICE [Paradonde] stop worker processes
2008-02-15 21:51:21.779 INFO [Paradonde] 1 request being processed, kill external app later.

My settings are:

Name Paradonde
Address uds://tmp/paradonde.sock
Notes Not Set
Max Connections 1
Environment Not Set
Initial Request Timeout (secs) 10
Retry Timeout (secs) 5
Persistent Connection No
Connection Keepalive Timeout 30
Response Buffering No
Auto Start Yes
Command /home/d9a402a6/jhonWeb/paradondevamos/django-fcgi.py
Back Log 50
Instances 1

django-fcgi.py:

import sys, os
from settings_dev import BASE_DIR
BASE_DIR = os.path.abspath(os.path.dirname(__file__)+'/../')
sys.path.append(BASE_DIR)

os.chdir(BASE_DIR)
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "paradondevamos.settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="prefork", daemonize="false")

Also, I don't can acces this useing the uri '/'. I have a new vhost for this... I must delete the default one?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:03 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.