Search code examples
djangoweb-applicationsdjango-viewsdjango-templateshttp-status-code-404

Django:URL Mapping ,Page not found (404)


I am a newbie to Django. Trying to create my first webapp.

I ran into a problem. I have 3 templates store, kart and checkout. I am able to navigate from store to kart without any issues. Now I wish to move to checkout page from the kart page. I am using a button for this purpose.

Below given is the code present in my kart.html page. enter image description here

I am facing the below issue: enter image description here

Below given is my urls.py file

enter image description here

And this is my views.py file

enter image description here

Could anyone tell me what I am doing wrong. Thanks in advance!!


Solution

  • There is a typo you are missing %

     href="{% url 'checkout' %}"