Merge pull request #49 from j127/master

Add `urls` and `clean` commands to manage.py
master
Steven Loria 9 years ago
commit 5c5e7bd92a
  1. 3
      {{cookiecutter.app_name}}/manage.py

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

Loading…
Cancel
Save