C:\Python\python.exe "D:/Python/django reset framework/secondtestdjrstapi/users/views.py"
Traceback (most recent call last):
File "D:/Python/django reset framework/secondtestdjrstapi/users/views.py", line 2, in <module>
from rest_framework.authtoken.models import Token
File "C:\Python\lib\site-packages\rest_framework\authtoken\models.py", line 11, in <module>
class Token(models.Model):
File "C:\Python\lib\site-packages\rest_framework\authtoken\models.py", line 17, in Token
settings.AUTH_USER_MODEL, related_name='auth_token',
File "C:\Python\lib\site-packages\django\conf\__init__.py", line 57, in __getattr__
self._setup(name)
File "C:\Python\lib\site-packages\django\conf\__init__.py", line 42, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.