2020-02-01 14:29:56 -08:00
|
|
|
from flask import Flask
|
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
import os
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
2020-02-17 19:25:10 -08:00
|
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.getenv('DB_LOC')
|
2020-02-01 14:29:56 -08:00
|
|
|
app.secret_key = os.environ.get('FGS_SECRET_KEY') or 'default secret key'
|
|
|
|
|
|
|
|
db = SQLAlchemy(app)
|
|
|
|
|
|
|
|
from .views import *
|
|
|
|
from .model import *
|
|
|
|
from .jwt import *
|