I had a login
app which I was using. It had a table in my sqlite3 database. I decided I didn't need it anymore and I removed 'login',
from my INSTALLED_APPS and I deleted the app directory. However, now whenever I go to /admin
I get:
ImportError at /admin/
No module named login
Is this because there is still a login
table? How can I get rid of that? I tried python manage.py dbshell
and drop table login;
but it said a table named login
didn't exist.
The ImportError
means there is an import login
or from ... import login
statement that Python can not fulfill. You could check in the printed traceback for the location of the statement. It probably in some admin.py file inside installed apps. If the error occurs during login to /admin/
, you could check AUTHENTICATION_BACKENDS
in settings per Lovelive's suggestion.
The error has no relationship w/ Database table normally.