Метод использует Django Middleware Middleware

NoSuchKey

рекомендация

отwww.cnblogs.com/open-yang/p/11222562.html