Пример #1
0
#!./.venv/bin/python3

from Application import app
from ApplicationSampleData import SampleDataCommand
from flask_boilerplate_utils.commands import MainManager
import ApplicationTests


manager = MainManager(app,
    with_default_commands=False, 
    tests_module=ApplicationTests)

manager.add_command('data', SampleDataCommand)

if __name__ == "__main__":
    manager.run(default_command="server")

Пример #2
0
#!./.venv/bin/python3

from Application import app
from flask_boilerplate_utils.commands import MainManager
from flask.ext.migrate import MigrateCommand

manager = MainManager(app, with_default_commands=False)
manager.add_command('db', MigrateCommand)

if __name__ == "__main__":
    manager.run(default_command="server")
Пример #3
0
#!./.venv/bin/python3

from Application import app
from flask_boilerplate_utils.commands import MainManager
import ApplicationTests

manager = MainManager(app,
                      with_default_commands=False,
                      tests_module=ApplicationTests)

if __name__ == "__main__":
    manager.run(default_command="server")
Пример #4
0
#!./.venv/bin/python3

from Application import app
from flask_boilerplate_utils.commands import MainManager
import ApplicationTests

manager = MainManager(app,
    with_default_commands=False, 
    tests_module=ApplicationTests)

if __name__ == "__main__":
    manager.run(default_command="server")