Re: Django Oscar "Add to basket" issue

2012-11-27 Thread Achu
 
 Thanks David

-- 
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/-/y1g9onBJuI0J.
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.



Re: Django Oscar "Add to basket" issue

2012-11-27 Thread David Winterbottom
Hi Achu,

Note that there is a google group for Oscar questions - that's a better 
place to ask questions such as this.
https://groups.google.com/forum/#!forum/django-oscar

Re your question: it looks like you are missing the basket middleware.  You 
need to add 'oscar.apps.basket.middleware.BasketMiddleware' to your 
'MIDDLEWARE_CLASSES' to have the basket instance assigned to the request 
object.

See 
http://django-oscar.readthedocs.org/en/releases-0.4/getting_started.html#settings
 
for more details on installing Oscar.

Cheers, David


On Sunday, November 25, 2012 12:54:51 PM UTC, Achu wrote:
>
>
>  Hi All,
>
>  I am trying to integrate ecommerce section  to my project using Django 
> Osacr . When I try to add one product to my basket I got this error
>
> AttributeError at /store/basket/add/
>
> 'WSGIRequest' object has no attribute 'basket'
>
> Request Method: POST  Request URL: http://localhost:8000/store/basket/add/  
> Django 
> Version: 1.4.2  Exception Type: AttributeError  Exception Value: 
>
> 'WSGIRequest' object has no attribute 'basket'
>
>  Exception Location: /myProject/apps/myecommerce/basket/views.py in 
> get_form_kwargs, line 160  Python Executable: /usr/bin/python  Python 
> Version: 2.7.3  Python Path: 
>
> ['/usr/local/lib/python2.7/dist-packages/requests/packages',
>
>
>
>
> Please help me to solve this issue..
>
> Thanks 
>

-- 
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/-/AqTqO8ykJF0J.
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.



Django-oscar Add to basket issue

2012-11-25 Thread Aswathy Raju

   Hi All,

   I am trying to integrate an ecommerce section  to my project using 
"Django - Oscar" .Here when I try to add a product to my  
   basket I got following error ..


AttributeError at /store/basket/add/

'WSGIRequest' object has no attribute 'basket'

 Request Method: POST

 Request URL: http://localhost:8000/store/basket/add/

 Django Version: 1.4.2

 Exception Type: AttributeError

 Exception Value: 

'WSGIRequest' object has no attribute 'basket'

 Exception Location: /myProject/apps/myecommerce/basket/views.py in 
get_form_kwargs, line 160

 Python Executable: /usr/bin/python

 Python Version: 2.7.3




 Please help me to solve this issue ..


Thanks,


















































-- 
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/-/ZT1nE2vLk9UJ.
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.



Django Oscar "Add to basket" issue

2012-11-25 Thread Aswathy Raju

 Hi All,

 I am trying to integrate ecommerce section  to my project using Django 
Osacr . When I try to add one product to my basket I got this error

AttributeError at /store/basket/add/

'WSGIRequest' object has no attribute 'basket'

Request Method: POST  Request URL: http://localhost:8000/store/basket/add/  
Django 
Version: 1.4.2  Exception Type: AttributeError  Exception Value: 

'WSGIRequest' object has no attribute 'basket'

 Exception Location: /myProject/apps/myecommerce/basket/views.py in 
get_form_kwargs, line 160  Python Executable: /usr/bin/python  Python 
Version: 2.7.3  Python Path: 

['/usr/local/lib/python2.7/dist-packages/requests/packages',




Please help me to solve this issue..

Thanks 

-- 
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/-/uoQwaiw-5P0J.
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.