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 "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 177, in handler
    return ModPythonHandler()(req)

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

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

  File "/usr/lib/python2.4/site-packages/django/middleware/cache.py", line 55, in process_request
    cache_key = get_cache_key(request, self.key_prefix)

  File "/usr/lib/python2.4/site-packages/django/utils/cache.py", line 134, in get_cache_key
    headerlist = cache.get(cache_key, None)

  File "/usr/lib/python2.4/site-packages/django/core/cache/backends/db.py", line 28, in get
    cursor = connection.cursor()

  File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", line 99, in cursor
    self.connection = Database.connect(**kwargs)

  File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 81, in Connect

  File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 187, in __init__

OperationalError: (1040, 'Too many connections')