GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python_intermediate/python_flask/create.py at master · Alexmhack/python_intermediate Expand file tree/ Copy pathcreate.pyMore file actions 17 lines (12 loc) · 334 Bytes / Copy pathcreate.pyFile metadata and controls17 lines (12 loc) · 334 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import os from flask import Flask, render_template, request from models import * app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DATABASE_URL") app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False db.init_app(app) def main(): db.create_all() if __name__ == "__main__": with app.app_context(): main() |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |