Added manage.py
This commit is contained in:
parent
2badde4ff4
commit
bf855e0a21
15
attract/manage.py
Normal file
15
attract/manage.py
Normal file
@ -0,0 +1,15 @@
|
||||
from application import app
|
||||
from application import db
|
||||
from flask.ext.script import Manager
|
||||
# from flask.ext.migrate import Migrate
|
||||
# from flask.ext.migrate import MigrateCommand
|
||||
|
||||
# migrate = Migrate(app, db)
|
||||
manager = Manager(app)
|
||||
# manager.add_command('db', MigrateCommand)
|
||||
|
||||
@manager.command
|
||||
def create_all_tables():
|
||||
db.create_all()
|
||||
|
||||
manager.run()
|
Loading…
x
Reference in New Issue
Block a user