Hi all,
I'm getting a weird intermittent exception since i updated django from
trunk yesterday. When I reload apache and request any page I get an
exception for about 3 times, and then after that all goes as intended.
It seems to be a problem with the delayed_loader that replaces each
real_* i18n function on first call. I can see that part of the code
has changed in changeset 4905, but I'm not sure what exactly is
causing the problem.
I'm not sure what revision i was updating from, but it couldn't have
been more than a week ago since I last updated.
In any case, here's the stack trace:
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 145, in __call__
self.load_middleware()
File "/usr/lib/python2.4/site-packages/django/core/handlers/
base.py", line 29, in load_middleware
mod = __import__(mw_module, {}, {}, [''])
File "/usr/lib/python2.4/site-packages/django/contrib/sessions/
middleware.py", line 2, in ?
from django.contrib.sessions.models import Session
File "/usr/lib/python2.4/site-packages/django/contrib/sessions/
models.py", line 51, in ?
class Session(models.Model):
File "/usr/lib/python2.4/site-packages/django/db/models/base.py",
line 35, in __new__
new_class.add_to_class('_meta', Options(attrs.pop('Meta', None)))
File "/usr/lib/python2.4/site-packages/django/db/models/base.py",
line 174, in add_to_class
value.contribute_to_class(cls, name)
File "/usr/lib/python2.4/site-packages/django/db/models/options.py",
line 53, in contribute_to_class
setattr(self, 'verbose_name_plural',
meta_attrs.pop('verbose_name_plural', self.verbose_name + 's'))
File "/usr/lib/python2.4/site-packages/django/utils/functional.py",
line 42, in __wrapper__
res = self.__func(*self.__args, **self.__kw)
File "/usr/lib/python2.4/site-packages/django/utils/translation/
__init__.py", line 52, in gettext
return real_gettext(message)
File "/usr/lib/python2.4/site-packages/django/utils/translation/
__init__.py", line 34, in delayed_loader
caller = traceback.extract_stack(limit=2)[0][2]
IndexError: list index out of range
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---