Category: Tips & Tricks
171 Posts
Django: Roll Back Part of a Transaction with Savepoints — Stop Losing the Whole Batch When One Row Fails
Django: Use @cached_property to Compute Once and Reuse Many Times in a Model
Flask: Separate Templates and Static Files per Blueprint — Stop Your templates/ Folder from Ballooning in 5 Minutes
Django Admin: Edit Data Inline on the List Page with list_editable in 5 Minutes
FastAPI: Receive Form Text and File Uploads in the Same Multipart Endpoint
Django: Delete Records Safely with DeleteView — Confirmation Page, Block Deleting Others’ Posts in 5 Minutes
FastAPI: Store Login Sessions with SessionMiddleware in 5 Minutes
Django: Add Extra Fields to a ManyToMany Relationship with a Through Model in 5 Minutes
