Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely removing a django app that has dot notation

Tags:

python

django

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

$ python manage.py sqlclear django.contrib.comments

on the shell but got:

Error: App with label django.contrib.comments could not be found. Are you sure your INSTALLED_APPS setting is correct?

I have double checked my INSTALLED_APPS setting and indeed django.contrib.comments is present.

Any suggestions on how to get around this?

like image 461
lenny Avatar asked Jan 24 '13 14:01

lenny


1 Answers

The app_name is actually just the last element of the file path. So comments should work.

like image 133
Daniel Roseman Avatar answered Nov 06 '22 22:11

Daniel Roseman