문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top