You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
312 B
19 lines
312 B
#!/usr/bin/env python |
|
# -*- encoding: utf-8 -*- |
|
|
|
import logging |
|
|
|
from flask.ext.script import Manager |
|
|
|
from luncho.server import app |
|
|
|
manager = Manager(app) |
|
|
|
|
|
@manager.command |
|
def create_db(): |
|
"""Create the database.""" |
|
|
|
if __name__ == '__main__': |
|
logging.basicConfig(level=logging.DEBUG) |
|
manager.run()
|
|
|