A small Python script to pick lyrics, which I can use for our company lunch-game "LyricsPop".
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.

26 lines
729 B

11 years ago
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# before everything else, start the logging system in DEBUG mode for the
# manager. this way we can log everything, including the app start up
11 years ago
import logging
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
11 years ago
manager = Manager(app)
manager.add_command('runserver', Server(use_debugger=True,
use_reloader=True))
if __name__ == '__main__':
manager.run()