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.
 
 
 
 
 

25 lines
729 B

#!/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
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
manager = Manager(app)
manager.add_command('runserver', Server(use_debugger=True,
use_reloader=True))
if __name__ == '__main__':
manager.run()