Ключ сессии пользователя 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

В настоящее время существуют пользователи социального входа и обычные пользователи.

  1. Would using the runserver(not gunicorn or uwsgi) in production be a problem?
  2. response = self.get_response(request) <-- Could it be a thread safety issue?
  3. Is there anything else i need to check?
Вернуться на верх