Changeset - 80f06e8db439
[Not reviewed]
default
0 0 1
Dennis Fink - 11 years ago 2013-11-18 23:47:45
dennis.fink@c3l.lu
added manage.py
1 file changed with 23 insertions and 0 deletions:
0 comments (0 inline, 0 general)
manage.py
Show inline comments
 
new file 100644
 
import pprint
 

	
 
from flask import current_app
 
from flask.ext.script import Manager
 
from flask.ext.script.commands import Clean, ShowUrls
 

	
 
from ennstatus import app
 

	
 

	
 
manager = Manager(app)
 

	
 

	
 
@manager.command
 
def dumpconfig():
 
    """Show config."""
 

	
 
    pprint.pprint(current_app.config)
 

	
 
manager.add_command("clean", Clean())
 
manager.add_command("urls", ShowUrls())
 

	
 
if __name__ == "__main__":
 
    manager.run()
0 comments (0 inline, 0 general)