Exemplo n.º 1
0
def main(args):
    i18n.load_path.append(os.path.abspath('locale'))

    if args.config:
        app.config.from_pyfile(args.config)
    else:
        app.config.from_object(settings)

    app.blueprint(avatar)
    app.blueprint(autocomplete)
    app.blueprint(legacy_create)
    app.blueprint(vanilla_create)
    app.blueprint(legacy_activate)
    app.blueprint(vanilla_activate)
    app.blueprint(session)
    app.blueprint(swrequest)

    app.run(host=app.config.ADDRESS, port=app.config.PORT)
Exemplo n.º 2
0
def main(args):
    i18n.load_path.append(os.path.abspath('locale'))
    if args.config:
        app.config.update_config(f"./{args.config}")
    else:
        app.config.update_config(settings)

    app.blueprint(avatar)
    app.blueprint(autocomplete)
    app.blueprint(legacy_create)
    app.blueprint(vanilla_create)
    app.blueprint(legacy_activate)
    app.blueprint(vanilla_activate)
    app.blueprint(session)
    app.blueprint(swrequest)
    app.blueprint(password)
    app.blueprint(manager)

    app.run(host=app.config.ADDRESS, port=app.config.PORT)
Exemplo n.º 3
0
from dash import app

app.run(host='0.0.0.0', debug=True)

Exemplo n.º 4
0
from dash import app

if __name__ == "__main__":
    app.run()
Exemplo n.º 5
0
from dash import app
import os

app.run(debug=os.getenv('DEBUG', ''))
Exemplo n.º 6
0
from dash import app


app.run(debug=True)
Exemplo n.º 7
0
from dash import app

app.run(port=8080)