Completely uninstall dotted django application

I want to remove the django.contrib.comments application from the project I'm working on. I tried:

 $ python manage.py sqlclear django.contrib.comments 

on the shell, but received:

Error: Application tagged django.contrib.comments could not be found. Are you sure your INSTALLED_APPS setting is correct?

I double checked the INSTALLED_APPS settings and really django.contrib.comments .

Any suggestions on how to get around this?

+6
source share
2 answers

The application name is actually the last element of the file path. Therefore, comments should work.

+3
source

You can run

 python manage.py reset app_name 

Then remove the application name from the installed applications.

0
source

All Articles