docs.djangoproject.com
How to test the callbacks passed to Django's
How to test the callbacks passed to Django's transaction.on_commit
Elton Morais
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.








docs.djangoproject.com
How to test the callbacks passed to Django's transaction.on_commit
Elton Morais
Tech Insights· docs.djangoproject.com
How to test the callbacks passed to Django's transaction.on_commit
Shared by
cheesecakelabs.com
Learn how to keep data integrity with Django migrations while propagating model changes and maintaining synchronization with your database schema.
Gabriela Cavalcante
Tech Insights· cheesecakelabs.com
From cheesecakelabs.com
Learn how to keep data integrity with Django migrations while propagating model changes and maintaining synchronization with your database schema.
Shared by
testdriven.io
This article looks at how permissions work in Django REST Framework.
Renato Vieira
Tech Insights· testdriven.io
From testdriven.io
This article looks at how permissions work in Django REST Framework.
Shared by
github.com
Explicit control over database query execution in Django applications - dabapps/django-zen-queries
Flavio Juvenal
Tech Insights· github.com
From github.com
Explicit control over database query execution in Django applications - dabapps/django-zen-queries
Shared by
Tech Insights· realpython.com
Shared by
Tech Insights· hakibenita.com
Shared by
github.com
The missing widgets and form manipulation library for Django - jrief/django-formset
Flavio Juvenal
Tech Insights· github.com
From github.com
The missing widgets and form manipulation library for Django - jrief/django-formset
Shared by
github.com
💨 Fast, Async-ready, Openapi, type hints based framework for building APIs - vitalik/django-ninja
Flavio Juvenal
Tech Insights· github.com
From github.com
💨 Fast, Async-ready, Openapi, type hints based framework for building APIs - vitalik/django-ninja
Shared by
lincolnloop.com
Our book, High Performance Django, is now available for free online.
Gustavo Carvalho
Tech Insights· lincolnloop.com
From lincolnloop.com
Our book, High Performance Django, is now available for free online.
Shared by
Tech Insights· github.com
Shared by
adamchainz.gumroad.com
✨ Updated for Django 3.2✨ - see blog post. This book is a practical guide to making your Django project's tests faster. It has many tips and tricks that...
Flavio Juvenal
Tech Insights· adamchainz.gumroad.com
From adamchainz.gumroad.com
✨ Updated for Django 3.2✨ - see blog post. This book is a practical guide to making your Django project's tests faster. It has many tips and tricks that...
Shared by
pypi.org
django-capture-on-commit-callbacks: Capture and make assertions on () callbacks. This allows you to write your tests with the TestCase, rather than needing the slower TransactionTestCase to actually commit the transactions:
Flavio Juvenal
Tech Insights· pypi.org
django-capture-on-commit-callbacks: Capture and make assertions on () callbacks. This allows you to write your tests with the TestCase, rather than needing the slower TransactionTestCase to actually commit the transactions:
Shared by
adamj.eu
Here’s another use case for creating a database constraint with Django’s CheckConstraint class.
Filipe Ximenes
Tech Insights· adamj.eu
From adamj.eu
Here’s another use case for creating a database constraint with Django’s CheckConstraint class.
Shared by
github.com
Hi. I used to write my tests with os.environ['RECAPTCHA_TESTING'] = 'True' ...` (like described in #150 ) This not work with the current version. Is there a new way to do this?
Flavio Juvenal
Tech Insights· github.com
From github.com
Hi. I used to write my tests with os.environ['RECAPTCHA_TESTING'] = 'True' ...` (like described in #150 ) This not work with the current version. Is there a new way to do this?
Shared by
adamj.eu
Django’s transaction.on_commit() hook is useful for running tasks that rely on changes in the current database transaction. The database connection enqueues callback functions passed to on_commit, and executes the callbacks after the current transaction commits. If the transaction is rolled back, the callbacks are discarded. This means they act if-and-when the final version of the data is visible to other database connections.
Andre Carneiro
Tech Insights· adamj.eu
From adamj.eu
Django’s transaction.on_commit() hook is useful for running tasks that rely on changes in the current database transaction. The database connection enqueues callback functions passed to on_commit, and executes the callbacks after the current transaction commits. If the transaction is rolled back, the callbacks are discarded. This means they act if-and-when the final version of the data is visible to other database connections.
Shared by
Book a call
Tell us about your product and the problem in front of you. We’ll bring what we’ve learned on real projects.
Tell us about your product, and we’ll bring what we’ve learned.
Still prefer the good old email? Contact us



