# Path: gae/config/config.py
# class Config:
#     BUNDLE_ERRORS = True
#     # see: http://flask-restful-cn.readthedocs.org/en/0.3.4/reqparse.html#error-handling
# 
#     @classmethod
#     def init_app(cls, app):
#         pass


from .config import Config
from werkzeug.debug import DebuggedApplication
from werkzeug.contrib.profiler import ProfilerMiddleware
from app.models.name import Name, root


DEBUG = 1
PROFILE = 1


class Development(Config):
    FLASK_CONFIG = 'development'

    @classmethod
    def init_app(cls, app):
        Config.init_app(app)

        if DEBUG:
            app.debug = True
            app.wsgi_app = DebuggedApplication(app.wsgi_app,
                                               evalex=True,
                                               console_path='/_console')
            # In order for debug to work with GAE, use DebuggedApplication.


# Path: gae/config/config.py
# class Config:
#     BUNDLE_ERRORS = True
#     # see: http://flask-restful-cn.readthedocs.org/en/0.3.4/reqparse.html#error-handling
# 
#     @classmethod
#     def init_app(cls, app):
#         pass


# Path: gae/config/development.py
from .config import Config
from werkzeug.debug import DebuggedApplication
from werkzeug.contrib.profiler import ProfilerMiddleware
from app.models.name import Name, root



DEBUG = 1
PROFILE = 1


class Development(Config):
    FLASK_CONFIG = 'development'

    @classmethod
    def init_app(cls, app):
        Config.init_app(app)

        if DEBUG:
            app.debug = True
            app.wsgi_app = DebuggedApplication(app.wsgi_app,
                                               evalex=True,
                                               console_path='/_console')
            # In order for debug to work with GAE, use DebuggedApplication.


        if PROFILE: