Ключ сессии пользователя django был изменен на ключ сессии другого пользователя иногда
base.py
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend',
]
middleware.py
class CountVisitorMiddleware(object):
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
response = self.get_response(request)
...
return response
В настоящее время существуют пользователи социального входа и обычные пользователи.
- Would using the runserver(not gunicorn or uwsgi) in production be a problem?
- response = self.get_response(request) <-- Could it be a thread safety issue?
- Is there anything else i need to check?