遇到一个奇怪的问题,一个很简单的django页面,GET方式可以正常访问但是在POST报403错误。
后来查到是1.3版本settings.py 文件中 ‘django.middleware.csrf.CsrfViewMiddleware’, 造成的,把这句注掉就可以了。
遇到一个奇怪的问题,一个很简单的django页面,GET方式可以正常访问但是在POST报403错误。
后来查到是1.3版本settings.py 文件中 ‘django.middleware.csrf.CsrfViewMiddleware’, 造成的,把这句注掉就可以了。
This entry was posted on August 8, 2011, 11:41 am and is filed under Uncategorized. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^