Re: Django with modpython in Ubuntu
I cannot explain it, I was able to solve this problem by deleting cache of my browser. Young-Jin On Aug 9, 12:53 pm, John <[EMAIL PROTECTED]> wrote: > It would appear to > Be a problem with your cookie.py > File.In order for me to help you further I will need > To see The source of said file > > John Menerick > > Sent from my iPhone > > On Aug 9, 2007, at 9:03 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED] > > > wrote: > > > Dear all, > > > I have a problem using mod_python with Django (v 0.95) under apache2 > > in Ubunu. > > I followed all the steps described in the online documentation, but it > > did not work. > > The followins is how I set up the httpd.conf and error message I got. > > > httpd.conf: > > DirectoryIndex index.php index.html index.htm > > AcceptPathInfo on > > > > >SetHandler python-program > >PythonHandler django.core.handlers.modpython > >SetEnv DJANGO_SETTINGS_MODULE mysite.settings > >PythonDebug On > >PythonPath "['/home/yjlee/Worx/Django/Projects'] + sys.path" > > > > > I created a project with "django-admin.py startproject mysite" at "/ > > home/yjlee/Worx/Django/Projects" directory. > > > When I pointed my web browser to "http://edtech.soe.ku.edu/mysite/; > > I got the following error messages: > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > > Traceback (most recent call last): > > > File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line > > 299, in HandlerDispatch > >result = object(req) > > > File "/var/lib/python-support/python2.5/django/core/handlers/ > > modpython.py", line 163, in handler > >return ModPythonHandler()(req) > > > File "/var/lib/python-support/python2.5/django/core/handlers/ > > modpython.py", line 136, in __call__ > >response = self.get_response(req.uri, request) > > > File "/var/lib/python-support/python2.5/django/core/handlers/ > > base.py", line 59, in get_response > >response = middleware_method(request) > > > File "/var/lib/python-support/python2.5/django/contrib/sessions/ > > middleware.py", line 69, in process_request > >request.session = > > SessionWrapper(request.COOKIES.get(settings.SESSION_COOKIE_NAME, > > None)) > > > File "/var/lib/python-support/python2.5/django/core/handlers/ > > modpython.py", line 59, in _get_cookies > >self._cookies = > > http.parse_cookie(self._req.headers_in.get('cookie', '')) > > > File "/var/lib/python-support/python2.5/django/http/__init__.py", > > line 150, in parse_cookie > >c.load(cookie) > > > File "Cookie.py", line 619, in load > >self.__ParseString(rawdata) > > > File "Cookie.py", line 650, in __ParseString > >self.__set(K, rval, cval) > > > File "Cookie.py", line 572, in __set > >M.set(key, real_value, coded_value) > > > File "Cookie.py", line 451, in set > >raise CookieError("Illegal key value: %s" % key) > > > CookieError: Illegal key value: hide:inst11 > > > Can anyone help me solve this problem? > > > Thanks in advance. > > > Young-Jin Lee --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: [Q] Django with modpython in Ubuntu
It would appear to Be a problem with your cookie.py File.In order for me to help you further I will need To see The source of said file John Menerick Sent from my iPhone On Aug 9, 2007, at 9:03 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED] > wrote: > > Dear all, > > I have a problem using mod_python with Django (v 0.95) under apache2 > in Ubunu. > I followed all the steps described in the online documentation, but it > did not work. > The followins is how I set up the httpd.conf and error message I got. > > httpd.conf: > DirectoryIndex index.php index.html index.htm > AcceptPathInfo on > > >SetHandler python-program >PythonHandler django.core.handlers.modpython >SetEnv DJANGO_SETTINGS_MODULE mysite.settings >PythonDebug On >PythonPath "['/home/yjlee/Worx/Django/Projects'] + sys.path" > > > I created a project with "django-admin.py startproject mysite" at "/ > home/yjlee/Worx/Django/Projects" directory. > > When I pointed my web browser to "http://edtech.soe.ku.edu/mysite/; > I got the following error messages: > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line > 299, in HandlerDispatch >result = object(req) > > File "/var/lib/python-support/python2.5/django/core/handlers/ > modpython.py", line 163, in handler >return ModPythonHandler()(req) > > File "/var/lib/python-support/python2.5/django/core/handlers/ > modpython.py", line 136, in __call__ >response = self.get_response(req.uri, request) > > File "/var/lib/python-support/python2.5/django/core/handlers/ > base.py", line 59, in get_response >response = middleware_method(request) > > File "/var/lib/python-support/python2.5/django/contrib/sessions/ > middleware.py", line 69, in process_request >request.session = > SessionWrapper(request.COOKIES.get(settings.SESSION_COOKIE_NAME, > None)) > > File "/var/lib/python-support/python2.5/django/core/handlers/ > modpython.py", line 59, in _get_cookies >self._cookies = > http.parse_cookie(self._req.headers_in.get('cookie', '')) > > File "/var/lib/python-support/python2.5/django/http/__init__.py", > line 150, in parse_cookie >c.load(cookie) > > File "Cookie.py", line 619, in load >self.__ParseString(rawdata) > > File "Cookie.py", line 650, in __ParseString >self.__set(K, rval, cval) > > File "Cookie.py", line 572, in __set >M.set(key, real_value, coded_value) > > File "Cookie.py", line 451, in set >raise CookieError("Illegal key value: %s" % key) > > CookieError: Illegal key value: hide:inst11 > > Can anyone help me solve this problem? > > Thanks in advance. > > Young-Jin Lee > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Q] Django with modpython in Ubuntu
Dear all, I have a problem using mod_python with Django (v 0.95) under apache2 in Ubunu. I followed all the steps described in the online documentation, but it did not work. The followins is how I set up the httpd.conf and error message I got. httpd.conf: DirectoryIndex index.php index.html index.htm AcceptPathInfo on SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On PythonPath "['/home/yjlee/Worx/Django/Projects'] + sys.path" I created a project with "django-admin.py startproject mysite" at "/ home/yjlee/Worx/Django/Projects" directory. When I pointed my web browser to "http://edtech.soe.ku.edu/mysite/; I got the following error messages: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/var/lib/python-support/python2.5/django/core/handlers/ modpython.py", line 163, in handler return ModPythonHandler()(req) File "/var/lib/python-support/python2.5/django/core/handlers/ modpython.py", line 136, in __call__ response = self.get_response(req.uri, request) File "/var/lib/python-support/python2.5/django/core/handlers/ base.py", line 59, in get_response response = middleware_method(request) File "/var/lib/python-support/python2.5/django/contrib/sessions/ middleware.py", line 69, in process_request request.session = SessionWrapper(request.COOKIES.get(settings.SESSION_COOKIE_NAME, None)) File "/var/lib/python-support/python2.5/django/core/handlers/ modpython.py", line 59, in _get_cookies self._cookies = http.parse_cookie(self._req.headers_in.get('cookie', '')) File "/var/lib/python-support/python2.5/django/http/__init__.py", line 150, in parse_cookie c.load(cookie) File "Cookie.py", line 619, in load self.__ParseString(rawdata) File "Cookie.py", line 650, in __ParseString self.__set(K, rval, cval) File "Cookie.py", line 572, in __set M.set(key, real_value, coded_value) File "Cookie.py", line 451, in set raise CookieError("Illegal key value: %s" % key) CookieError: Illegal key value: hide:inst11 Can anyone help me solve this problem? Thanks in advance. Young-Jin Lee --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---