importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/udmin/projects/ekitaphana/ekitaphana/urls.py", line 35, in <module>
path('api-auth/', include('rest_framework.urls')),
File "/home/udmin/projects/ekitaphana/venv/lib/python3.6/site-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/udmin/projects/ekitaphana/venv/lib/python3.6/site-packages/rest_framework/urls.py", line 17, in <module>
from django.contrib.auth import views
File "/home/udmin/projects/ekitaphana/venv/lib/python3.6/site-packages/django/contrib/auth/views.py", line 10, in <module>
from django.contrib.auth.forms import (
File "/home/udmin/projects/ekitaphana/venv/lib/python3.6/site-packages/django/contrib/auth/forms.py", line 20, in <module>
UserModel = get_user_model()
File "/home/udmin/projects/ekitaphana/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 'auth.User' that has not been installed
(venv) udmin@udmin-Standard-PC-i440FX-PIIX-1996:~/projects/ekitaphana$
При запуске рансервер выходит ? Как быть ?
что в settings.py c AUTH_USER_MODEL ?
Обсуждают сегодня