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.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/36636e92-854d-4a77-9493-b60836799509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.