How to implement a “dry run mode” for data imports in Django

How to implement a “dry run mode” for data imports in Django

Articles

In data import processes it’s often useful to have a “dry run” mode, that runs through the process but doesn’t actually save the data. This post shows how to implement a dry run mode in Django by using a database transaction and rolling it back.