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.
20 lines
343 B
20 lines
343 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) |
|
app.config.DEBUG = True |
|
manager.run()
|
|
|