Esempio n. 1
0
#!/usr/bin/env python
# -*- coding: utf8 -*-

# manage.py

from gevent.monkey import patch_all
patch_all()

from flask.ext.script import Manager
from flask.ext.assets import ManageAssets
from purkinje.app import get_app
from purkinje.assets import register_assets

app = get_app()
manager = Manager(app)
assets_env = register_assets(app)

manager.add_command("assets", ManageAssets(assets_env))


@manager.command
def hello():
    print 'hello'

if __name__ == "__main__":
    manager.run()
Esempio n. 2
0
#!/usr/bin/env python
# -*- coding: utf8 -*-

# manage.py

from gevent.monkey import patch_all
patch_all()

from flask.ext.script import Manager
from flask.ext.assets import ManageAssets
from purkinje.app import get_app
from purkinje.assets import register_assets

app = get_app()
manager = Manager(app)
assets_env = register_assets(app)

manager.add_command("assets", ManageAssets(assets_env))


@manager.command
def hello():
    print 'hello'


if __name__ == "__main__":
    manager.run()
Esempio n. 3
0
def app():
    return sut.get_app()
Esempio n. 4
0
def app():
    return sut.get_app()