Flask-Project-Template/src/core/__init__.py

12 lines
284 B
Python
Raw Normal View History

2019-12-22 19:09:36 +00:00
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///static/db/database.db"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
2019-12-29 21:59:11 +00:00
from core.models import db
db.init_app(app)
2019-12-22 19:09:36 +00:00
from core import routes