From 46d624d478f85adb4c531296c938506df05791c1 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sun, 19 Nov 2023 00:23:17 +0100 Subject: [PATCH] basic flask app --- .gitignore | 2 ++ app/__init__.py | 7 +++++++ app/settings.py | 0 requirements.txt | 1 + 4 files changed, 10 insertions(+) create mode 100644 .gitignore create mode 100644 app/__init__.py create mode 100644 app/settings.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c6c0ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.python-version +*.pyc diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..a82ac87 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,7 @@ +from flask import Flask, request, redirect, url_for, render_template + +def create_app(): + # create and configure the app + app = Flask(__name__) + app.config.from_pyfile('settings.py') + return app \ No newline at end of file diff --git a/app/settings.py b/app/settings.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8ab6294 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +flask \ No newline at end of file