mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 11:19:57 +00:00
123123123
This commit is contained in:
14
application/__init__.py
Normal file
14
application/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from flask import Flask
|
||||
from flask_migrate import Migrate
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
# Web Server
|
||||
app = Flask(__name__)
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data.sqlite"
|
||||
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
||||
app.config["SECRET_KEY"] = "bvjchsygvduycgsyugc"
|
||||
|
||||
# ORM
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
migrate = Migrate(app, db)
|
||||
Reference in New Issue
Block a user