BLOG
All articles tagged Django
High Performance Django Is Free Online
In 2014 Yann Malet and I (with the help of the rest of the team here) wrote a book about …
Distributed Locking in Django
As you start scaling an application out horizontally (adding more servers/instances), you may run into a problem that requires distributed …
Single-file Python/Django Deployments
This post covers portions of my talk, Containerless Django, from DjangoCon US 2018. Deploying Python has improved significantly since I …
Cracking Django Password Hashes
Most of the Django projects I work with take advantage of django.contrib.auth. It manages users and groups and is tightly …
Goodbye manage.py
Every Django project starts with a manage.py file in its root. It’s a convenience script that allows you to run …
Using setup.py in Your (Django) Project
A client recently asked me why all the Django projects we create have a setup.py in the root of the …
Django Logging, The Right Way
Good logging is critical to debugging and troubleshooting problems. Not only is it helpful in local development, but in production …
Disabling Error Emails in Django
One of Django’s nice “batteries included” features is the ability to send emails when an error is encountered. This is …
Django Patterns: Fat Models and cached_property
One of my favorite patterns in Django is the combination of “fat” models and cached_property from django.utils.functional. Fat models are …
Django Anti-Patterns: Signals
Django’s Signal Dispatcher is a really powerful feature that you should never use. Ok, it has valid use cases, but …