From b7d4c737ca74740f6f8db2d72a67ac45a5bfe64b Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 21 Sep 2019 23:39:06 -0500 Subject: [PATCH] intial Flask setup, README --- README.md | 7 +++++++ app/__init__.py | 5 +++++ app/routes.py | 6 ++++++ wsgi.py | 4 ++++ 4 files changed, 22 insertions(+) create mode 100644 README.md create mode 100644 app/__init__.py create mode 100644 app/routes.py create mode 100644 wsgi.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..64baf02 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# thedrank.com + +Welcome to the repository managing the dumbest website in the world. + +Made with Python & Flask. + +Current plans: What am I doing with my life. \ No newline at end of file diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..82b47ea --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,5 @@ +from flask import Flask + +app = Flask(__name__) + +from app import routes \ No newline at end of file diff --git a/app/routes.py b/app/routes.py new file mode 100644 index 0000000..43401f9 --- /dev/null +++ b/app/routes.py @@ -0,0 +1,6 @@ +from app import app +from flask import render_template + +@app.route('/') +def index(): + return 'who the hell knows' \ No newline at end of file diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..c0f531a --- /dev/null +++ b/wsgi.py @@ -0,0 +1,4 @@ +from app import app + +if __name__ == "__main__": + app.run(host="0.0.0.0") \ No newline at end of file