sysr-q / flask-themes2

Easily theme your Flask app. (Flask-Themes with Flask>=0.6 support!)
Other
19 stars 14 forks source link

There is no theme #9

Open semsphy opened 8 years ago

semsphy commented 8 years ago

Theme loader

I has a directory themes in my root application, below is how I registered theme

app.config['DEFAULT_THEME'] = app.config['DEFAULT_THEME'] or "adminlte"
Themes(app, app_identifier='test')

@app.route("/test/themes", methods=["GET"])
def themes():
    themes = get_themes_list()
    app.logger.info(app.theme_manager.list_themes())
    return ','.join(themes)

I got an empty list.

I'm using Flask==0.10.1, I didn't know why it returned an empty list.

Regards,

sysr-q commented 2 months ago

Is this still an issue for you? Let me know, I can leave this open for another year or ten. 😄