Skip to content

No Order matches the given query. Chapter 8 #100

Description

@kaustubhsariputra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions