ImproperlyConfigured: Middleware module “django.middleware.csrf” does not define a “CsrfResponseMiddleware” class

后端 未结 3 1233
庸人自扰
庸人自扰 2021-01-13 13:42

I don\'t have this problem on my local development environment, but I just deployed the app with nginx + gunicorn (first time deploying an app) and I am getting this traceba

3条回答
  •  旧巷少年郎
    2021-01-13 14:07

    In Django 1.3, I have only django.middleware.csrf.CsrfViewMiddleware in my middlewares to get CSRF protection working

提交回复
热议问题