Category: Flask
41 Posts
Flask: Manage Environment Variables with .env — Stop Hardcoding SECRET_KEY and Exporting by Hand
Flask: List Every Route with the flask routes Command — Stop Guessing When You Hit a 404 in 5 Minutes
Flask: Separate Templates and Static Files per Blueprint — Stop Your templates/ Folder from Ballooning in 5 Minutes
Flask-Login: Force Re-Login for Sensitive Actions with fresh_login_required in 5 Minutes
Flask: Run Background Tasks in a Thread and Still Read the Request — Use copy_current_request_context in 5 Minutes
Flask: Store Sessions Server-Side with Flask-Session and Redis in 5 Minutes
Flask: Read Form Data with request.form — Don’t Lose Checkboxes by Forgetting getlist() in 5 Minutes
Flask: Add Security Headers to Every Response with after_request in 5 Minutes
