jazzband / django-rest-knox

Authentication Module for django rest auth
MIT License
1.18k stars 213 forks source link

auth.py calls get_user_model() which breaks Django when using a custom user model. #194

Closed brumiser1550 closed 4 months ago

brumiser1550 commented 5 years ago

I cannot get Django to even consider running while the auth.py file calls get_user_model().

If I take it out everything works. It looks like this is not even used so not sure why it is even needed in this file.

File "/var/www/pycharmprojects/feedback_project/venv/lib/python3.6/site-packages/django/contrib/auth/__init__.py", line 170, in get_user_model
    "AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'users.User' that has not been installed
alrhalford commented 5 years ago

Have you installed your users app?

johnraz commented 4 months ago

Old and lacks details, closing.