Skip to content

error on routing to some views #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kia1349 opened this issue Jan 12, 2025 · 1 comment
Open

error on routing to some views #1

kia1349 opened this issue Jan 12, 2025 · 1 comment

Comments

@kia1349
Copy link

kia1349 commented Jan 12, 2025

hi omar
i have problem on some routing

for example , when i click on "read more" blow any product i get this error:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/single-blog.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/
  11. ^media/(?P<path>.*)$
  12. ^static/(?P<path>.*)$

The current path, single-blog.html, didn’t match any of these.

or when click on product image , then i have this error:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/single-blog.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/
  11. ^media/(?P<path>.*)$
  12. ^static/(?P<path>.*)$

The current path, single-blog.html, didn’t match any of these.

when clicked on My Account:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/my-account.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/ [name='payment_method']
  11. orders/ checkout/ [name='checkout']
  12. orders/ payment/ [name='payment']
  13. orders/ payments/ [name='payments']
  14. orders/ order_completed/ [name='order_complete']
  15. ^media/(?P<path>.*)$
  16. ^static/(?P<path>.*)$

The current path, orders/payment/my-account.html, didn’t match any of these.

when clicked on My Cart:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/cart.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/ [name='payment_method']
  11. orders/ checkout/ [name='checkout']
  12. orders/ payment/ [name='payment']
  13. orders/ payments/ [name='payments']
  14. orders/ order_completed/ [name='order_complete']
  15. ^media/(?P<path>.*)$
  16. ^static/(?P<path>.*)$

The current path, orders/payment/cart.html, didn’t match any of these.

when i clicked on My Wishlist:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/wishlist.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/ [name='payment_method']
  11. orders/ checkout/ [name='checkout']
  12. orders/ payment/ [name='payment']
  13. orders/ payments/ [name='payments']
  14. orders/ order_completed/ [name='order_complete']
  15. ^media/(?P<path>.*)$
  16. ^static/(?P<path>.*)$

The current path, orders/payment/wishlist.html, didn’t match any of these.

and when i click on check out:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/checkout.html

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

  1. admin/
  2. [name='home']
  3. shop/ [name='shop']
  4. shop/<slug:category_slug>/ [name='categries']
  5. shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']
  6. search/ [name='search']
  7. review/<int:product_id>/ [name='review']
  8. account/
  9. cart/
  10. orders/ [name='payment_method']
  11. orders/ checkout/ [name='checkout']
  12. orders/ payment/ [name='payment']
  13. orders/ payments/ [name='payments']
  14. orders/ order_completed/ [name='order_complete']
  15. ^media/(?P<path>.*)$
  16. ^static/(?P<path>.*)$

The current path, orders/payment/checkout.html, didn’t match any of these.

@lutoF90
Copy link

lutoF90 commented Mar 23, 2025

hi omar i have problem on some routing

for example , when i click on "read more" blow any product i get this error:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/single-blog.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/`

11. `^media/(?P<path>.*)$`

12. `^static/(?P<path>.*)$`

The current path, single-blog.html, didn’t match any of these.

or when click on product image , then i have this error:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/single-blog.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/`

11. `^media/(?P<path>.*)$`

12. `^static/(?P<path>.*)$`

The current path, single-blog.html, didn’t match any of these.

when clicked on My Account:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/my-account.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/ ``[name='payment_method']`

11. `orders/ ``checkout/ [name='checkout']`

12. `orders/ ``payment/ [name='payment']`

13. `orders/ ``payments/ [name='payments']`

14. `orders/ ``order_completed/ [name='order_complete']`

15. `^media/(?P<path>.*)$`

16. `^static/(?P<path>.*)$`

The current path, orders/payment/my-account.html, didn’t match any of these.

when clicked on My Cart:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/cart.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/ ``[name='payment_method']`

11. `orders/ ``checkout/ [name='checkout']`

12. `orders/ ``payment/ [name='payment']`

13. `orders/ ``payments/ [name='payments']`

14. `orders/ ``order_completed/ [name='order_complete']`

15. `^media/(?P<path>.*)$`

16. `^static/(?P<path>.*)$`

The current path, orders/payment/cart.html, didn’t match any of these.

when i clicked on My Wishlist:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/wishlist.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/ ``[name='payment_method']`

11. `orders/ ``checkout/ [name='checkout']`

12. `orders/ ``payment/ [name='payment']`

13. `orders/ ``payments/ [name='payments']`

14. `orders/ ``order_completed/ [name='order_complete']`

15. `^media/(?P<path>.*)$`

16. `^static/(?P<path>.*)$`

The current path, orders/payment/wishlist.html, didn’t match any of these.

and when i click on check out:

Page not found (404)

Request Method: | GET -- | -- http://127.0.0.1:8081/orders/payment/checkout.html

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

1. `admin/`

2. `[name='home']`

3. `shop/ [name='shop']`

4. `shop/<slug:category_slug>/ [name='categries']`

5. `shop/<slug:category_slug>/<slug:product_details_slug>/ [name='product_details']`

6. `search/ [name='search']`

7. `review/<int:product_id>/ [name='review']`

8. `account/`

9. `cart/`

10. `orders/ ``[name='payment_method']`

11. `orders/ ``checkout/ [name='checkout']`

12. `orders/ ``payment/ [name='payment']`

13. `orders/ ``payments/ [name='payments']`

14. `orders/ ``order_completed/ [name='order_complete']`

15. `^media/(?P<path>.*)$`

16. `^static/(?P<path>.*)$`

The current path, orders/payment/checkout.html, didn’t match any of these.

did you manage to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants