User Tools

Site Tools

no way to compare when less than two revisions


This shows you the differences between two versions of the page.

python:flask [2024/03/07 23:45] (current) – created dblume
Line 1: Line 1:
 +====== Python Flask ======
 +I once hosted the following [[|flask]] page at It cites [[|Flask on Dreamhost Shared Website Hosting]]. At DreamHost, Flask required Passenger, which they discontinued.
 +<file python>
 +import sys, os
 +INTERP = os.path.join(os.environ['HOME'], '', 'py3venv', 'bin', 'python3')
 +if sys.executable != INTERP:
 +        os.execl(INTERP, INTERP, *sys.argv)
 +from flask import Flask
 +application = Flask(__name__)
 +def index():
 +    return 'Hello from Passenger.\nSee'
python/flask.txt · Last modified: 2024/03/07 23:45 by dblume