Created
January 30, 2012 07:07
-
-
Save goldenboy/1702996 to your computer and use it in GitHub Desktop.
1 Minute install WEB2PY on PythonAnywhere
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: web2py.pythonanywhere.com | |
# --------------------------------- | |
# web2py IDE and Hosting on PythonAnywhere.com | |
# 1 Minute install | |
# | |
# '/home/web2py' is my home dir and 'web2py' my username | |
# 'unzip web2py_src.zip' on home and I get | |
# path='/home/web2py/web2py' | |
# Now in path is 'web2py.py' and other source '.py' files | |
# EDIT file 'var/www/wsgi.py' | |
# PASTE next code, CHANGING YOUR 'path', and reload webapp | |
################################ | |
import os | |
import sys | |
path = '/home/change-with-your-username/web2py' | |
if path not in sys.path: | |
sys.path.append(path) | |
from wsgihandler import application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment