Source

flask-actions / examples / example / example / __init__.py

Full commit
# -*- encoding:utf-8 -*-
from flask import Flask
from example.views.frontend import frontend
from example.views.hello import hello
from .models import db

def create_app(config=None):
    app = Flask(__name__)
    if config:
        app.config.from_object(config)
    db.init_app(app)
    app.register_module(frontend)
    app.register_module(hello)
    return app