looking for solution

28 views
Skip to first unread message

Lutalo Bbosa joseph

unread,
Jul 27, 2020, 7:14:37 AM7/27/20
to django...@googlegroups.com
hello everyone am stack with some error in django am working on an ecommerce application here is the error code.
i have aswell attached my template and the views.py file

NoReverseMatch at /products/beef/

' cart' is not a registered namespace

Screenshot from 2020-07-27 14-02-03.png
Screenshot from 2020-07-27 14-08-12.png
Screenshot from 2020-07-27 14-10-36.png

Kasper Laudrup

unread,
Jul 27, 2020, 7:28:13 AM7/27/20
to django...@googlegroups.com
Hi Lutalo,
' cart' is not the same as 'cart'. Notice the leading space.

That is mostly likely the cause of your error. Notice how you are
writing the "action" attribute in "form-product-ajax" in your
update-cart.html file.

Kind regards,

Kasper Laudrup

jhabar singh

unread,
Jul 27, 2020, 8:29:23 AM7/27/20
to django...@googlegroups.com
in cart app urls.py did you write 
app_name = 'cart'

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMz%3Dh%3DSYOAJ%3DToAnCpLhGi-n-f07Acx6ibYPd6oOKWQ8TpkOnw%40mail.gmail.com.

Exactly musty

unread,
Jul 27, 2020, 3:04:30 PM7/27/20
to Django users
The way you wrote your django url is not correct,the " should be like the "cart" not " cart " python count empty space
Reply all
Reply to author
Forward
0 new messages