aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/app.py b/app.py
new file mode 100644
index 0000000..8aaf6dc
--- /dev/null
+++ b/app.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+Created on Sun Jan 17 09:38:19 2021
+
+@author: sveter
+"""
+
+# app.py
+from flask import Flask
+from flask_sqlalchemy import SQLAlchemy
+
+app = Flask(__name__)
+app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///justice2.db'
+app.secret_key = "123456"
+db = SQLAlchemy(app) \ No newline at end of file