Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

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

  File "/home/code/django/core/handlers/modpython.py", line 190, in handler
    return ModPythonHandler()(req)

  File "/home/code/django/core/handlers/modpython.py", line 164, in __call__
    response = self.get_response(req.uri, request)

  File "/home/code/django/core/handlers/base.py", line 105, in get_response
    return self.get_friendly_error_response(request, resolver)

  File "/home/code/django/core/handlers/base.py", line 130, in get_friendly_error_response
    return callback(request, **param_dict)

  File "/home/code/django/views/defaults.py", line 69, in server_error
    return httpwrappers.HttpResponseServerError(t.render(Context()))

  File "/home/code/django/core/template/__init__.py", line 146, in render
    return self.nodelist.render(context)

  File "/home/code/django/core/template/__init__.py", line 714, in render
    bits.append(self.render_node(node, context))

  File "/home/code/django/core/template/__init__.py", line 727, in render_node
    return(node.render(context))

  File "/home/code/django/core/template/loader_tags.py", line 79, in render
    return compiled_parent.render(context)

  File "/home/code/django/core/template/__init__.py", line 146, in render
    return self.nodelist.render(context)

  File "/home/code/django/core/template/__init__.py", line 714, in render
    bits.append(self.render_node(node, context))

  File "/home/code/django/core/template/__init__.py", line 727, in render_node
    return(node.render(context))

  File "/home/code/django/core/template/loader_tags.py", line 60, in render
    compiled_parent = self.get_parent(context)

  File "/home/code/django/core/template/loader_tags.py", line 57, in get_parent
    return get_template_from_string(source, origin)

  File "/home/code/django/core/template/loader.py", line 86, in get_template_from_string
    return Template(source, origin)

  File "/home/code/django/core/template/__init__.py", line 137, in __init__
    self.nodelist = compile_string(template_string, origin)

  File "/home/code/django/core/template/__init__.py", line 152, in compile_string
    return parser.parse()

  File "/home/code/django/core/template/__init__.py", line 304, in parse
    compiled_result = compile_func(self, token)

  File "/home/code/django/core/template/loader_tags.py", line 129, in do_block
    nodelist = parser.parse(('endblock',))

  File "/home/code/django/core/template/__init__.py", line 304, in parse
    compiled_result = compile_func(self, token)

  File "/home/code/ellington/media/templatetags/photogalleries.py", line 44, in get_latest_galleries_from_set
    gs = gallerysets.get_object(slug__exact=slug)

  File "/home/code/django/utils/functional.py", line 3, in _curried
    return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items()))

  File "/home/code/django/core/meta/__init__.py", line 1366, in function_get_object
    obj_list = function_get_list(opts, klass, **kwargs)

  File "/home/code/django/core/meta/__init__.py", line 1406, in function_get_list
    return list(function_get_iterator(opts, klass, **kwargs))

  File "/home/code/django/core/meta/__init__.py", line 1387, in function_get_iterator
    cursor = db.db.cursor()

  File "/home/code/django/core/db/backends/postgresql.py", line 80, in cursor
    self.connection = Database.connect(conn_string)

OperationalError: FATAL:  could not access status of transaction 0
DETAIL:  could not write to file "pg_subtrans/72A0" at offset 155648: No space left on device