adnanmuttaleb
adnanmuttaleb

Reputation: 3624

How to completely uninstall django-taggit from my project?

I want to remove django-taggit from my project, but when I removed the 'taggit' app from the INSTALLED_APPS, the following error occurred:

    raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration SourceManager.0002_auto_20190218_2112 dependencies reference nonexistent parent node ('taggit', '0002_auto_20150616_2121')

I think this error occurred because django-taggit has migration files, so how to safely remove it from my project?

Upvotes: 0

Views: 691

Answers (1)

Abbas
Abbas

Reputation: 230

You are half way through. The django-taggit has migration files and that's why you are facing the error.

You may want to reset the database state and re-apply the migrations to avoid this error.

This tutorial explains in detail how to reset the database and re-apply the migrations. I suggest you to follow the procedure step by step.

A word of caution: Even if you are a Unix bases OS user, avoid deleting migration files by executing the commands given in tutorial. The command messes up with Django default files and creates unncessary problems. Better to delete migration files one-by-one and model-by-model.

Upvotes: 1

Related Questions