コード例 #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))
コード例 #2
0
def configure(app, db=None):
    themes = Themes()
    themes.init_themes(app, app_identifier="quokka")
コード例 #3
0
ファイル: themes.py プロジェクト: wujiagan/E-shop
def configure(app):
    themes = Themes()
    themes.init_themes(app, app_identifier="jing")