begin auth stuff
This commit is contained in:
4
app.py
4
app.py
@@ -6,6 +6,7 @@ from flask_sqlalchemy import SQLAlchemy
|
||||
basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = 'HwG55rpe83jcaglifXm8NuF4WEeXyJV4'
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] =\
|
||||
'sqlite:///' + os.path.join(basedir, 'database.db')
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
@@ -13,6 +14,9 @@ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
from auth import auth as auth_blueprint
|
||||
app.register_blueprint(auth_blueprint)
|
||||
|
||||
class Period(db.Model):
|
||||
period = db.Column(db.Integer, primary_key=True)
|
||||
periodTime = db.Column(db.Integer)
|
||||
|
Reference in New Issue
Block a user