21 lines
574 B
Python
21 lines
574 B
Python
from flask import Flask
|
|
|
|
|
|
def create_app():
|
|
app = Flask(__name__)
|
|
app.config['SECRET_KEY'] = "raleicuu0Engohh3iageephoh3looge0okupha2omeiph7Nooyeey1tiewooxu7phaeshi0ohlaaThai2eth1oapong5iroo4fieleekaidohmoh1eYahjei9Yi6aema"
|
|
app.config['SQLALCHEMY_ECHO'] = True
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
|
|
|
|
from . import db
|
|
db.init_app(app)
|
|
|
|
from .main import main as main_blueprint
|
|
app.register_blueprint(main_blueprint)
|
|
|
|
from . import auth
|
|
auth.init_app(app)
|
|
app.register_blueprint(auth.blueprint)
|
|
|
|
return app
|