Exemplo n.º 1
0
from flask import Flask 
from local.genshi import Genshi
import utils

app = Flask(__name__)

app.config.from_object('container.conf')

genshi = Genshi(app)

wrk = utils.make_celery(app)

utils.register_blueprints(app)

# final reference
import container.main
Exemplo n.º 2
0
# -*- coding: utf-8 -*-
"""
Initialize Cavy app
"""

from flask import Flask
from flaskext.gae_mini_profiler import GAEMiniProfiler
from utils import register_blueprints
import cavy


app = Flask('cavy')
cavy.app = app
register_blueprints(app)
app.config.from_object('cavy.settings')

# Enable profiler (enabled in non-production environ only)
GAEMiniProfiler(app)

# Pull in URL dispatch routes
import urls