Deep into Django
Django offers a great deal of hidden functionality - secret gems - if you know where to look. In this serie I am showing tips and tricks to get the most out of Django.
Articles in this series
JWT Authentication class for python requests
When using the requests library in Python you can use some built-in auth mechanisms like HTTPBasicAuth and HTTPDigestAuth. However, I could not find...
Reducing queries for ForeignKeys in Django admin inlines
Use 93x less queries using patched raw_id_fields and prefetching · Speed up with raw_id_fields ForeignKeys in the Django admin show as a select-box...
Handling Django exceptions in the middleware
Prevent 500 error raised by exceptions by catching them in the middleware · A problem that many Django programmers face is uncaught exceptions triggering...