EditionPN/app/__init__.py

11 lines
257 B
Python
Raw Permalink Normal View History

2021-05-06 10:26:28 +02:00
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
from app import routes, models