1👍
✅
Move your custom User model into app.models and set AUTH_USER_MODEL='app.User'
. Django parses AUTH_USER_MODEL value as ‘app_name.model_name’ and then attempts to do from app_name.models import model_name
, so if the model is not in models.py it will not be found.
Here is the doc link for reference: https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#substituting-a-custom-user-model
Source:stackexchange.com