Closed unicornlox closed 6 years ago
I solved the problem, I created the shopping application manually :) thanks
I did manage.py startapp shopping, and then I found there is no urls.py in shopping, after I created it, then, AttributeError at / 'Library' object has no attribute 'assignment_tag'
https://github.com/lazybird/django-carton/issues/3
then I found this answer very helpful In carton_tags.py:
@register.simple_tag(takes_context=True, name=CART_TEMPLATE_TAG_NAME) def get_cart(context, session_key=None, cart_class=Cart): ----request = context['request'] ----return cart_class(request.session, session_key=session_key)
works fine with django 3.0
hello lazybird; How can i fix the problem?(Note:python3.5, django 1.11.3 and my settings.py in 'carton','shopping','products',)