标签:ati cli auth issue orb 技术分享 option The django
from
表单submit之后报错入下:setting.py
中的django.middleware.csrf.CsrfViewMiddleware’,
这一句注释掉MIDDLEWARE = [
‘django.middleware.security.SecurityMiddleware‘,
‘django.contrib.sessions.middleware.SessionMiddleware‘,
‘django.middleware.common.CommonMiddleware‘,
#‘django.middleware.csrf.CsrfViewMiddleware‘,
‘django.contrib.auth.middleware.AuthenticationMiddleware‘,
‘django.contrib.messages.middleware.MessageMiddleware‘,
‘django.middleware.clickjacking.XFrameOptionsMiddleware‘,
]
重新运行效果如下:
Django 使用form表单提交数据报错: Forbidden (403)
标签:ati cli auth issue orb 技术分享 option The django
原文地址:https://www.cnblogs.com/LuckyZLi/p/9825716.html