[Answer]-Why is my middleware not setting request attributes on logout?

1👍

You’re not using a RequestContext when rendering the template, so the request variable is not present. Use the render shortcut instead.

 return render(request, 'registration/logout.html')

Leave a comment