send from directory

thumb
km0 2 years ago
parent 23dacbcbc2
commit 53916fcede

@ -93,7 +93,7 @@ def set_base_url():
# Homepage # Homepage
@app.route(f"/{base_url}/") @app.route(f"/{base_url}/")
def home_page(): def home_page():
return send_from_directory(f'{app.root_path}/render.html') return send_from_directory(app.root_path, 'render.html')
# For generic pages we can include a common template and change only the contents # For generic pages we can include a common template and change only the contents

Loading…
Cancel
Save