Details:
Trying to setup on the root of my domain
GoDaddy Deluxe Linux plan
Apache (mod_python not available)
Python 2.4
FastCGI
MySQL
Here is what I've done:
Added to the bottom of .htaccess (just copied from tutorial):
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]
Created mysite.fcgi (just copied from tutorial):
#!/usr/bin/python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/user/python")
# Switch to the directory of your project. (Optional.)
# os.chdir("/home/user/myproject")
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
...Now what?
I know I need flup. And I need to put the Django source on the server.
But *where* do I upload them to, and *how* do I install them (how do i
run the setup.py) without SSH?
Any help would be awesome.
Thanks guys.
-rich
Copy the django source somewhere in your home. Write a CGI to run the
setup.py, like
#!/bin/sh
echo Content-type: text/html
echo
cd /path/to/django/source
/path/to/python setup.py install --prefix=/path/to/your/home/python
2>&1
The same to sync the db, etc...
Hope this helps (a little)
(in case you didn't pay 12 months in advance you have some
alternatives: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts)