aboutsummaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-06-24 23:39:05 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-06-24 23:39:05 +0530
commite52c18a09cabd374093b06ef0f521767cd228ba6 (patch)
tree6548d357ba45e75334da8c225a0c6cd5f77f0850 /app/__init__.py
make it better
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/__init__.py b/app/__init__.py
new file mode 100644
index 0000000..d2b7088
--- /dev/null
+++ b/app/__init__.py
@@ -0,0 +1,13 @@
+from flask import Flask
+
+# Config Values
+# location where file uploads will be stored
+UPLOAD_FOLDER = './app/static/uploads'
+# needed for session security, the flash() method in this case stores the message
+# in a session
+SECRET_KEY = 'Sup3r$3cretkey'
+
+app = Flask(__name__)
+app.config.from_object(__name__)
+
+from app import views \ No newline at end of file