Re: error in the "Writing your first Django app, part 2"

70 views
Skip to first unread message

Rafael E. Ferrero

unread,
Sep 6, 2012, 4:12:49 PM9/6/12
to django...@googlegroups.com
Maybe, your browser dont accept cookies ??

2012/9/6 Maheshakya Wijewardena <pmahes...@gmail.com>
I've followed the instruction & proceeded upto the point where it comes to activate the admin site. But I get the following error when I load the page "  http://127.0.0.1:8000/admin/"

CookieError at /admin/

Invalid Attribute httponly
Request Method:GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.5
Exception Type: CookieError
Exception Value:
Invalid Attribute httponly
Exception Location: C:\Python25\lib\Cookie.py in __setitem__, line 435
Python Executable: C:\Python25\python.exe
Python Version:2.5.0
Python Path:
['C:\\django\\mysite',
 'C:\\Windows\\system32\\python25.zip',
 'C:\\Python25\\DLLs',
 'C:\\Python25\\lib',
 'C:\\Python25\\lib\\plat-win',
 'C:\\Python25\\lib\\lib-tk',
 'C:\\Python25',
 'C:\\Python25\\lib\\site-packages']
Server time: Fri, 7 Sep 2012 00:08:09 +0530


This is the traceback 


File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in get_response
  188.                 response = middleware_method(request, response)
File "C:\Python25\lib\site-packages\django\contrib\sessions\middleware.py" in process_response
  42.                         httponly=settings.SESSION_COOKIE_HTTPONLY or None)
File "C:\Python25\lib\site-packages\django\http\__init__.py" in set_cookie
  645.             self.cookies[key]['httponly'] = True
File "C:\Python25\lib\Cookie.py" in __setitem__
  435.             raise CookieError("Invalid Attribute %s" % K)

Exception Type: CookieError at /admin/
Exception Value: Invalid Attribute httponly


What should I do?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/NNlDNfHngP4J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Rafael E. Ferrero
Claro: (03562) 15514856

Melvyn Sopacua

unread,
Sep 6, 2012, 11:02:30 PM9/6/12
to django...@googlegroups.com

You're using development version of Django. Python 2.5 support is dropped there. Use official 1.4 release.

ecs1749

unread,
Sep 6, 2012, 11:37:01 PM9/6/12
to django...@googlegroups.com
I have a different error:

ViewDoesNotExist at /admin/

Could not import polls.views.vote. View does not exist in module polls.views.
Request Method:GET
Request URL:http://127.0.0.1:8000/admin/
Django Version:1.4.1
Exception Type:ViewDoesNotExist
Exception Value:
Could not import polls.views.vote. View does not exist in module polls.views.
Exception Location:/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py in get_callable, line 101
Python Executable:/usr/bin/python
Python Version:2.7.3
Python Path:
['/www/mysite',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gtk-2.0']
Server time:Thu, 6 Sep 2012 15:44:46 -0700

ecs1749

unread,
Sep 6, 2012, 11:48:38 PM9/6/12
to django...@googlegroups.com
Nevermind.  I think I confused myself in doing step 3 before 2.

Maheshakya Wijewardena

unread,
Sep 7, 2012, 5:27:58 PM9/7/12
to django...@googlegroups.com
thanks
official version did the job
Reply all
Reply to author
Forward
0 new messages