view.py:
urls.py
url(r'^uploadfile/, views.upload_file),
html:
備注:
上傳時(shí)提示CSRF verification failed. Request aborted.錯(cuò)誤
請(qǐng)注釋掉:setting.py中以下代碼
MIDDLEWARE= [
'django.middleware.csrf.CsrfViewMiddleware',]
view.py:
urls.py
url(r'^uploadfile/, views.upload_file),
html:
備注:
上傳時(shí)提示CSRF verification failed. Request aborted.錯(cuò)誤
請(qǐng)注釋掉:setting.py中以下代碼
MIDDLEWARE= [
'django.middleware.csrf.CsrfViewMiddleware',]