help with wsgi conf in a shared host

22 views
Skip to first unread message

ProfessionalIT

unread,
Sep 10, 2012, 1:30:57 PM9/10/12
to we...@googlegroups.com
Hi,

   I have a host company where I have hosted a website made with django and I want migrate this website to a web.py app.
   Well, the django app is deployed by a "control panel" and I have access in this server by SSH.
   
   In the root folder (where I have the django app) I have a index.wsgi file with this content:

import os, sys
os.environ['PYTHON_EGG_CACHE'] = '/home/mywebsite.com.br/.python-eggs'
sys.path.append('/home/mywebsite.com.br/www')
os.environ['DJANGO_SETTINGS_MODULE']='mywebsite.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Then, How to adept/adjusts this index.wsgi file to run my web.py app ?



Reply all
Reply to author
Forward
0 new messages