[Answer]-Django Admin Error. "Could not import my_app.views.admin_user"

1👍

The django error is not very descriptive, importing manually may help reveal the issue.

python ./manage.py shell and try importing my_app.views.admin_user manually:

from my_app.views import admin_user

Side Note: You shouldn’t need to call autodiscover (if django >= 1.7). As long as 'django.contrib.admin' is in your INSTALLED_APPS it will handle that for you automatically.

Leave a comment