简体   繁体   English

django 1.3升级问题

[英]django 1.3 upgrade problem

I recently updgraded to django 1.3. 我最近升级到Django 1.3。 After the upgrade, I get the following error whenever I used request.POST : 升级后,每当我使用request.POST时,都会出现以下错误:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 86, in  get_response
response = None

File "/public/gdp/trunk/src/ukl/lis/process/utils/error_handler.py", line 15, in __call__
return self.function(*args, **kwargs)

File "/usr/lib/python2.4/site-packages/django/views/decorators/cache.py", line 30, in _cache_controlled
# and this:

File "/public/gdp/trunk/src/ukl/lis/process/authentication/views.py", line 438, in login
form = loginForm(request.POST)

File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 101, in _get_post
self._load_post_and_files()

AttributeError: 'ModPythonRequest' object has no attribute '_load_post_and_files'

Once I reverted back to django 1.0 the error is fixed. 一旦我恢复到Django 1.0,该错误已修复。

Why is django 1.3 alone throwing this error? 为什么django 1.3独自抛出此错误? How to correct it? 如何纠正?

Stepping from Django 1.0 to Django 1.3 is a big jump, a lot of items might have been deprecated or no longer used, I recommend you to just check some of the documentation for the middleware_classes 从Django 1.0升级到Django 1.3是一个巨大的飞跃,很多项目可能已被弃用或不再使用,我建议您只检查Middleware_classes的一些文档

Django Middleware documentation Django中间件文档

I tried re-installing my mod-python and now the error is fixed. 我尝试重新安装我的mod-python,现在错误已修复。 Now thinking of migrating to mod_wsgi. 现在正在考虑迁移到mod_wsgi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM