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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

 screenshot

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

 screenshot

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

 screenshot

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 …

Yann Malet

Yann Malet October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

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 …

Peter Baumgartner

Peter Baumgartner October 17, 2024

 screenshot