|
|
|
@ -1,19 +1,20 @@
|
|
|
|
|
#!/usr/bin/env python |
|
|
|
|
# -*- encoding: utf-8 -*- |
|
|
|
|
|
|
|
|
|
from flask.ext.script import Manager |
|
|
|
|
from flask.ext.script import Server |
|
|
|
|
|
|
|
|
|
from lyrics import app |
|
|
|
|
|
|
|
|
|
# before everything else, start the logging system in DEBUG mode for the |
|
|
|
|
# manager. this way we can log everything, including the app start up |
|
|
|
|
import logging |
|
|
|
|
|
|
|
|
|
# starts the logging service, always |
|
|
|
|
if __name__ == '__main__': |
|
|
|
|
logging.basicConfig(level=logging.DEBUG, |
|
|
|
|
format='%(levelname)s:%(name)s ' |
|
|
|
|
'[%(funcName)s:%(lineno)d]:%(message)s') |
|
|
|
|
|
|
|
|
|
# and now back to your normal schedule |
|
|
|
|
from flask.ext.script import Manager |
|
|
|
|
from flask.ext.script import Server |
|
|
|
|
|
|
|
|
|
from lyrics import app |
|
|
|
|
|
|
|
|
|
manager = Manager(app) |
|
|
|
|
|
|
|
|
|