About Removing Third-party Django Apps
Here's how you can remove a third-party Django app (let's call it django-external-app
):
- Create a database backup.
- Remove all the relational fields in your apps referencing the models of
django-external-app
, create migrations, migrate. - Remove all the lines in your migrations of your apps that added, altered, or removed relations to
django-external-app
models. But keep the migration files. -
Unmigrate all migrations for
django-external-app
like so:(venv)$ python manage.py migrate external_app zero
-
Remove any code in your project related to
django-external-app
. - Uninstall
django-external-app
.
Tips and Tricks Development Django 5.x Django 4.2 Django 3.2 pip pip-tools
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.