On Fri, 2006-08-18 at 11:14 +0000, xgdlm wrote: [...] > [Fri Aug 18 13:00:52 2006] [error] [client 10.0.0.199] PythonHandler > django.core.handlers.modpython: TypeError: unsupported operand type(s) > for +: 'float' and 'str'
This almost always means you're passing a string where an integer is expected. > > Changing /usr/lib/python2.4/site-packages/django/middleware/cache.py > line 161 to > > self.cache_timeout = int(settings.CACHE_MIDDLEWARE_SECONDS) solved the > problem. And this confirms that CACHE_MIDDLEWARE_SECONDS should be an integer. However, you don't need this line. Undo it. > Settings : > #CACHE_BACKEND = 'memcached://127.0.0.1:22162/' > CACHE_MIDDLEWARE_SECONDS = '300' So stop passing it as a string. Set CACHE_MIDDLEWARE_SECONDS = 300 (no quotes) and you will be fine. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---