Hi all, I'm trying to setup django on greengeeks (shared hosting).
I've setup flup and django and a small app. I've also created my cgi file (mysite.cgi) that runs from my cgi-bin directory. I originally setup my .htaccess file as well, but it seems to redirect fine without any changes to .htaccess (running with the changes to .htaccess didn't seem to help...I dunno, maybe the .htaccess stuff I was entering is wrong, I don't know)... >From my browser, I point to my django site, and get a 500 server error. When I run 'python mysite.cgi' from the console (on the server) I get all of the expected django HTML getting printed... When I change the mysite.cgi file and add : print "Content-type: text/html\n\n" print 'HI MOM' and then point my browser to my site, it outputs 'HI MOM' on the screen (but nothing else)... SO, mysite.cgi is being called! Unfortunately, the django HTML is not being captured (or something) and returned to the browser (...). I'm not really sure how to proceed from here...how do I get the HTML that django prints to the browser? Here's my mysite.cgi import sys, os # Add a custom Python path. sys.path.insert(0, "/home/icebreak/bin/python") sys.path.append("/home/icebreak/lib/python2.4/site-packages") sys.path.append("/home/icebreak/bin") sys.path.append("/home/icebreak/django_projects/icebreak") # Switch to the directory of your project. (Optional.) os.chdir("/home/icebreak/django_projects/icebreak/mysite") # Set the DJANGO_SETTINGS_MODULE environment variable. os.environ['DJANGO_SETTINGS_MODULE'] = "mysite.settings" from django.core.servers.fastcgi import runfastcgi #print "Content-type: text/html\n\n" #print 'wtfd' runfastcgi(method="threaded", daemonize="false", outlog="/home/icebreak/django_out.log", errlog="/home/icebreak/django_err.log") I've got a question on stack overflow, but not much luck (http://stackoverflow.com/questions/11493803/django-on-shared-hosting-greengeeks). I appreciate any help you guys can provide!! Thanks! Jarrett -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/SWbLrYVoauYJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.