Skip to content

Instantly share code, notes, and snippets.

@goldenboy
Created January 30, 2012 07:07
Show Gist options
  • Save goldenboy/1702996 to your computer and use it in GitHub Desktop.
Save goldenboy/1702996 to your computer and use it in GitHub Desktop.
1 Minute install WEB2PY on PythonAnywhere
# 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