All pastes #18553 Raw Edit

Miscellany

public text v1 · immutable
#18553 ·published 2005-07-26 19:37 UTC
rendered paste body
Simple Example
Get Questions 
Mod_python error: "PythonHandler django.core.handler"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/django/core/handler.py", line 11, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 158, in __call__
    response = self.get_response(req.uri, request)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 50, in get_response
    response = middleware_method(request)

  File "/var/www/pyapps/django_ajax/middleware/ajax_handler.py", line 28, in process_request
    kwds.update(dict(request.POST))

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

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 29, in _load_post_and_files
    self._post, self._files = httpwrappers.QueryDict(self._post_data), datastructures.MultiValueDict()

  File "./django/utils/httpwrappers.py", line 72, in __init__

TypeError: argument 1 must be string without null bytes, not str