through-your-tears 9 months ago
parent 91c2fcd5c4
commit b6e4273343

@ -193,6 +193,28 @@ CACHES = {
}
}
LOGGING = {
'version': 1,
'filters': {
'require_debug_true': {
'()': 'django.utils.log.RequireDebugTrue',
}
},
'handlers': {
'console': {
'level': 'DEBUG',
'filters': ['require_debug_true'],
'class': 'logging.StreamHandler',
}
},
'loggers': {
'django.db.backends': {
'level': 'DEBUG',
'handlers': ['console'],
}
}
}
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
SESSION_CACHE_ALIAS = "default"

@ -55,7 +55,7 @@ class LoginSerializer(serializers.Serializer):
'A password is required to log in'
)
user = authenticate(username=email, email=email, password=password)
user = authenticate(username=email, password=password)
if user is None:
raise serializers.ValidationError(

Loading…
Cancel
Save