Hi, I'm moving an app I've been building from its test environment to production. The production environment url is, say, production.denverpost.com . The problem I've got is that there are cookies set by www.denverpost.com, and some of those cookies are set to just live at denverpost.com . The cookies set to denverpost.com are getting read by Django, and that's raising an error (and triggering an "Unhandled Exception").
This is the error I'm getting: > 2008-03-26 11:25:22: (server.c.1470) server stopped by UID = 247814 PID = 5956 > 2008-03-26 11:25:24: (log.c.75) server started > 2008-03-26 11:25:35: (mod_fastcgi.c.2570) FastCGI-stderr: Traceback (most > recent call last): > File > "/home/22222/data/python/lib/flup-1.0-py2.4.egg/flup/server/fcgi_base.py", > line 558, in run > File > "/home/22222/data/python/lib/flup-1.0-py2.4.egg/flup/server/fcgi_base.py", > line 1116, in handler > File "/home/22222/data/python/django/django/core/handlers/wsgi.py", line > 205, in __call__ > response = self.get_response(request) > File "/home/22222/data/python/django/django/core/handlers/base.py", line > 64, in get_response > response = middleware_method(request) > File > "/home/22222/data/python/django/django/contrib/sessions/middleware.py", line > 14, in process_request > session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) > File "/home/22222/data/python/django/django/core/handlers/wsgi.py", line > 147, in _get_cookies > self._cookies = http.parse_cookie(self.environ.get('HTTP_COOKIE', '')) > File "/home/22222/data/python/django/django/http/__init__.py", line 243, in > parse_cookie > c.load(cookie) > File "/var/tmp/python2.4-2.4.4-root/usr/lib/python2.4/Cookie.py", line 621, > in load > self.__ParseString(rawdata) > File "/var/tmp/python2.4-2.4.4-root/usr/lib/python2.4/Cookie.py", line 652, > in __ParseString > self.__set(K, rval, cval) > File "/var/tmp/python2.4-2.4.4-root/usr/lib/python2.4/Cookie.py", line 574, > in __set > M.set(key, real_value, coded_value) > File "/var/tmp/python2.4-2.4.4-root/usr/lib/python2.4/Cookie.py", line 453, > in set > raise CookieError("Illegal key value: %s" % key) > CookieError: Illegal key value: Poll:8522540 Seems like a bug, but this also seems like a pretty limited use-case. Can anybody give me an idea on a way to get around it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---