python:flask
no way to compare when less than two revisions
Differences
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 [[https:// | ||
+ | |||
+ | <file python passenger_wsgi.py> | ||
+ | import sys, os | ||
+ | INTERP = os.path.join(os.environ[' | ||
+ | if sys.executable != INTERP: | ||
+ | os.execl(INTERP, | ||
+ | sys.path.append(os.getcwd()) | ||
+ | |||
+ | from flask import Flask | ||
+ | application = Flask(__name__) | ||
+ | |||
+ | @application.route('/' | ||
+ | def index(): | ||
+ | return 'Hello from Passenger.\nSee https:// | ||
+ | </ |
python/flask.txt · Last modified: 2024/03/07 23:45 by dblume