Exemple #1
0
def create_app():
    app = Flask(__name__)

    # configurar extensoes
    db.configure(app)

    views.configure(app)

    admin.configure(app)

    contact.configure(app)

    # configurar variaveis
    app.config['SECRET_KEY'] = 'secret'
    return app
Exemple #2
0
def create_app():
    app = Flask(__name__)

    # configurar extensoes
    db.configure(app)

    views.configure(app)

    contact.configure(app)

    admin.configure(app)

    # configurar variaveis
    app.config['SECRET_KEY'] = 'dhuoel3nbjfop9dh@fmsdkfsml1'

    return app
Exemple #3
0
def create_app():
    app = Flask(__name__, static_folder="static", template_folder="frontend")

    # Extensions
    db.configure(app)
    views.configure(app)

    admin.configure(app)

    # Blueprint app example
    contact.configure(app)

    # Configurar variaveis
    app.config["SECRET_KEY"] = "skdalksdjsalkjdlkajsdlkajlks"

    return app
def create_app():
    """Function ?."""
    # app = Flask(__name__, template_folder='/template/bar.html', static_folder='/static')
    app = Flask(__name__)

    db.configure(app)

    views.configure(app)
    
    # configurar extensões
    contact.configure(app)

    # Flask Admin
    admin.configure(app)

    # configurar as variáveis
    app.config['SECRET_KEY'] = 'kdjlkhgslskglg'
    return app
Exemple #5
0
def create_app():
    app = Flask(__name__)
    views.configure(app)
    contact.configure(app)

    return app