Ejemplo n.º 1
0
def configure(app, db=None):
    themes = Themes()
    themes.init_themes(app, app_identifier="quokka")

    try:
        from quokka.core.models import Config
        s = Config.objects.get(group='settings')
        settings = {i.name: i.value for i in s.values}
        app.config.update(settings)
    except Exception as e:
        print(str(e))
Ejemplo n.º 2
0
def configure(app, db=None):
    themes = Themes()
    themes.init_themes(app, app_identifier="quokka")
Ejemplo n.º 3
0
def configure(app):
    themes = Themes()
    themes.init_themes(app, app_identifier="jing")