-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django 1.8: get_cart fails in templates #21
Comments
Did you solve it already? |
No, this is the only way I can use the cart in my project. |
Hello I have the same issue and I do not know how to investigate. Can someone help me ? I have no clue about where to start. |
@lionelsaintecluque : is adding the cart to your template contexts not working? This was my workaround (see above). |
I fixed the bug now. In cart.py Iine 44 : Thanks for your reply. |
I have django-carton installed correctly in my Django 1.8 project, and I can use the
Cart
object in my views as expected to add, delete and access items. Theget_cart
template tag does not seem to work, however. I included the carton_tags as documented:It looks like
cart
is justNone
. Theitems
list is empty. To access the items in my template, I have to pass them in from the view like this:Can anyone reproduce this? Am I missing something here?
The text was updated successfully, but these errors were encountered: