Fix Django CSRF token failure on an AWS ELB → Apache2 → uWSGI stack. The pitfall is the HTTP/HTTPS scheme detection when switching from mod_wsgi to uWSGI.
How to return a Shift-JIS (CP932) CSV download response from Django on Python 3 — write to StringIO as Unicode first, then encode to cp932 in one shot.
If you encounter the error "Cannot open application 'Steam.app'" when trying to launch the downloaded Steam on macOS 10.11 El Capitan, follow these steps. Note that the correctness of this method is not guaranteed...
Page through Django model instances retrieved via a complex query (raw SQL or composed Q objects) using Paginator, with a working implementation pattern.