server/fgs/__init__.py

14 lines
321 B
Python
Raw Normal View History

2020-02-01 14:29:56 -08:00
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import os
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///./data.sqlite'
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 *