How to Use Django Signals in Your Projects

Django signals can be a lifesaver if you’re building anything with Django and want your code to stay clean and organized. They help you connect different parts of your app without everything getting tangled together. Think of them like walkie-talkies… » freeCodeCamp.org | freecodecamp.org

15 de abril de 2025 · 1 min · 44 palabras · Nacho Cano

Django Transactions & PostgreSQL Locks: Why Your Database is Slower Than You Think

This is the finale in a three-part series on how Django transactions work. I cover how PSQL locks work and map PSQL commands to their locks. » hackernoon.com | hackernoon.com

25 de marzo de 2025 · 1 min · 30 palabras · Nacho Cano

Python: A Deeper Look Into How Django Transactions Work

Transactions are how Django manages all the DB operations that it runs. Learn how to best use them and avoid costly mistakes. » hackernoon.com | hackernoon.com

3 de marzo de 2025 · 1 min · 26 palabras · Nacho Cano

Django: launch pdb in templates with a custom {% breakpoint %} tag

In my recent Boost Your Django DX update, I added a new chapter on debuggers. Here’s an extra technique I didn’t finish in time for the update, but I will include it in the next one. » adamj.eu | adamj.eu

1 de diciembre de 2024 · 1 min · 40 palabras · Nacho Cano

Django: find ghost tables without associated models

Heavy refactoring of models can leave a Django project with “ghost tables”, which were created for a model that was removed without any trace in the migration history. Thankfully, by using some Django internals, you can find such tables. » adamj.eu | adamj.eu

26 de noviembre de 2024 · 1 min · 43 palabras · Nacho Cano

Deploying Django app with Docker, Docker-Compose and Certbot

Deploying a Django application using Docker Compose with Nginx, Gunicorn, PostgreSQL, and Certbot. » agiliq.com | agiliq.com

15 de noviembre de 2024 · 1 min · 17 palabras · Nacho Cano

Django Weblog: Django’s technical governance challenges, and opportunities

Posted by Django Software Foundation Board on Nov. 14, 2024 » Django Project | djangoproject.com

15 de noviembre de 2024 · 1 min · 15 palabras · Nacho Cano

Django: rotate your secret key, fast or slow

Django’s SECRET_KEY setting is used for cryptographic signing in various places, such as for session storage and password reset tokens. This makes keeping it secure a high priority since an attacker with the key could forge things like password reset tokens. » adamj.eu | adamj.eu

1 de septiembre de 2024 · 1 min · 45 palabras · Nacho Cano

Django: create sub-commands within a management command

argparse, the standard library module that Django uses for parsing command line options, supports sub-commands. These are pretty neat for providing an expansive API without hundreds of individual commands. Here’s an example of using sub-commands in a Django management command: » adamj.eu | adamj.eu

14 de agosto de 2024 · 1 min · 44 palabras · Nacho Cano

PyCharm: The State of Django 2024

Discover the Django framework’s popularity through statistics and learn the latest trends in Django development for 2024. » The JetBrains Blog | blog.jetbrains.com

6 de junio de 2024 · 1 min · 23 palabras · Nacho Cano