Category: Tips & Tricks
171 Posts
Django: Build Custom 404 and 500 Error Pages with handler404 and handler500 in 5 Minutes
Django REST Framework: Write Endpoints with APIView and @api_view — When to Use a Class, When to Use a Function
Django: Use get_object_or_404() Instead of try/except DoesNotExist — Return a Proper 404 in One Line
Flask: Run Background Tasks in a Thread and Still Read the Request — Use copy_current_request_context in 5 Minutes
FastAPI: Share One HTTP Client Across Requests with app.state in 5 Minutes
FastAPI: Customize Your OpenAPI Docs — Change the Title, Tag Endpoints, and Hide Internal Routes in 5 Minutes
Django: Export Large CSV Files with StreamingHttpResponse in 5 Minutes
JavaScript: Stop API Spam with Debounce — the Search Box Only Calls the API When You Stop Typing
