~homeworkprod/byceps

2cb1b1fe5883cabf1ed85b90e3cfacf9ec87e815 — Jochen Kupperschmidt 2 years ago c1237bc
Fix admin mode with static file serving
1 files changed, 4 insertions(+), 3 deletions(-)

M app.py
M app.py => app.py +4 -3
@@ 47,9 47,10 @@ def _generate_static_files_exports():
            yield url_path, str(path)

    # site-specific files
    site_id = config.get_current_site_id(app)
    site_files_path = Path('sites') / site_id / 'static'
    yield config.STATIC_URL_PREFIX_SITE, str(site_files_path)
    if config.get_site_mode(app).is_public():
        site_id = config.get_current_site_id(app)
        site_files_path = Path('sites') / site_id / 'static'
        yield config.STATIC_URL_PREFIX_SITE, str(site_files_path)


if app.env == 'development':