Category: Tips & Tricks
171 Posts
Flask: Store Sessions Server-Side with Flask-Session and Redis in 5 Minutes
Django: Build a Like Button for Every Model with GenericForeignKey — No More Duplicate Tables
FastAPI: Authorize by Scope with OAuth2 — the Right Route, the Right Permission, in 5 Minutes
Flask: Read Form Data with request.form — Don’t Lose Checkboxes by Forgetting getlist() in 5 Minutes
Django: Back Up and Restore Data with dumpdata and loaddata in 5 Minutes
Python: Process Large Data Memory-Efficiently with itertools — islice, chain and groupby in 5 Minutes
Flask: Add Security Headers to Every Response with after_request in 5 Minutes
Django REST Framework: Validate Data with validate() and validate_<field> in Serializers
