Hi all..i am learning django no, using django 1.3 + python 2.7 . i came from
php world...

i am using a book , and follow the code in there, but got error and cannot
find whats the cause. here are the errors.

anyone can give some clue? Thanks
AttributeError at /cart/

'WSGIRequest' object has no attribute 'update'

 Request Method: GET  Request URL: http://127.0.0.1:8000/cart/  Django
Version: 1.3  Exception Type: AttributeError  Exception Value:

'WSGIRequest' object has no attribute 'update'

 Exception Location: c:\python27\lib\site-packages\django\template\loader.py
in render_to_string, line 186  Python Executable:
c:\python27\python.exe  Python
Version: 2.7.2  Python Path:

['C:\\Users\\mulianto\\workspace\\ecomstore\\src\\ecomstore',
 'c:\\python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg',
 'C:\\Windows\\system32\\python27.zip',
 'c:\\python27\\DLLs',
 'c:\\python27\\lib',
 'c:\\python27\\lib\\plat-win',
 'c:\\python27\\lib\\lib-tk',
 'c:\\python27',
 'c:\\python27\\lib\\site-packages']

 Server time: Sun, 10 Jul 2011 13:23:33 +0800
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/cart/

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.flatpages',
 'ecomstore.catalog',
 'ecomstore.utils',
 'ecomstore.cart']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')


Traceback:
File "c:\python27\lib\site-packages\django\core\handlers\base.py" in
get_response
  111.                         response = callback(request, *callback_args,
**callback_kwargs)
File
"C:\Users\mulianto\workspace\ecomstore\src\ecomstore\..\ecomstore\cart\views.py"
in show_cart
  17.     return render_to_response(template_name, locals(),
context_instance=(request))
File "c:\python27\lib\site-packages\django\shortcuts\__init__.py" in
render_to_response
  20.     return HttpResponse(loader.render_to_string(*args, **kwargs),
**httpresponse_kwargs)
File "c:\python27\lib\site-packages\django\template\loader.py" in
render_to_string
  186.     context_instance.update(dictionary)

Exception Type: AttributeError at /cart/
Exception Value: 'WSGIRequest' object has no attribute 'update'

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to