Example #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))
Example #2
0
def configure(app, db=None):
    themes = Themes()
    themes.init_themes(app, app_identifier="quokka")
Example #3
0
def configure(app):
    themes = Themes()
    themes.init_themes(app, app_identifier="jing")