I’ve just tried to setup and upload my Django project to dreamhost, I really need to get it uploaded ASAP.
I’ve followed the guide here : http://stackoverflow.com/questions/10953695/update-django-1-4-and-python-2-7-3-with-virtualenv-on-dreamhost-with-passenger
Everything seemed to have worked fine upto the passenger_wsgi which gives me the error “An error occurred importing your passenger_wsgi.py” I’ve not had any experience with setting this kind of thing up before so could really use some help. My current wsgi file looks like so:
import sys, os
cwd = os.getcwd()
sys.path.append(cwd + '/projectname')
if sys.version < "2.7.5": os.execl("/home/lookeh/3dgiff.com/env/bin/python",
os.environ['DJANGO_SETTINGS_MODULE'] = "projectname.settings"
application = django.core.handlers.wsgi.WSGIHandler()
is the shell user, and <domain.com> is my domain.
I’m really not sure where to go to fix this. I also have another query which is how to start my Django server, I’m currently doing to in Shell, using “python manage.py runserver” however if I exit Shell I assume this will quit the server also.
Any help would really be appreciated.