PacktPublishing / Django-3-by-Example

Django 3 by Example (3rd Edition) published by Packt
https://djangobyexample.com/
MIT License
715 stars 690 forks source link

No Order matches the given query. Chapter 8 #100

Open kaustubhsariputra opened 3 years ago

kaustubhsariputra commented 3 years ago

I am getting this error in chapter 8 on page number 274. I have added code to the views.py of the payment application. Error is as follows:

Page not found (404)

No Order matches the given query.
Request Method: | GET -- | -- http://127.0.0.1:8000/payment/process/ payment.views.payment_process

Using the URLconf defined in FlixKart.urls, Django tried these URL patterns, in this order:

  1. admin/
  2. cart/
  3. orders/
  4. payment/ process/ [name='process']

The current path, payment/process/, matched the last one.

kaustubhsariputra commented 3 years ago

Does anyone reply here or not?