Running Django on a Shared-Hosting Provider with Apache
Running Django on a Shared-Hosting Provider with Apache
When i go to run the mysite.fcgi it prints out itself in the
browser.. Is there something wrong here? I have followed the steps
to the tee..
http://localhost/mysite.fcgi
print out this:
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/usr/bin/python2.7")
# 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="true")
here is my .htaccess file
Handler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ django.fcgi/$1 [QSA,L]
is it a permission problem?
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home