|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
import os |
|
|
|
|
from flask_script import Manager, Shell, Server |
|
|
|
|
from flask_script.commands import Clean, ShowUrls |
|
|
|
|
from flask_migrate import MigrateCommand |
|
|
|
|
|
|
|
|
|
from {{cookiecutter.app_name}}.app import create_app |
|
|
|
@ -38,6 +39,8 @@ def test(): |
|
|
|
|
manager.add_command('server', Server()) |
|
|
|
|
manager.add_command('shell', Shell(make_context=_make_context)) |
|
|
|
|
manager.add_command('db', MigrateCommand) |
|
|
|
|
manager.add_command("urls", ShowUrls()) |
|
|
|
|
manager.add_command("clean", Clean()) |
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
|
manager.run() |
|
|
|
|