Page not found (404)

No BlogPost matches the given query.
Request Method: GET
Request URL: http://127.0.0.1:8000/blogs/contact
Raised by: app.views.blogs_details

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

  1. admin/
  2. [name='index']
  3. about [name='about']
  4. contact [name='contact']
  5. dealer [name='dealer']
  6. book_test_ride [name='book_test_ride']
  7. success [name='success']
  8. why_ecoyan [name='why_ecoyan']
  9. photos [name='photos']
  10. e_rickshaw [name='e_rickshaw']
  11. e_cargo [name='e_cargo']
  12. e_garbage [name='e_garbage']
  13. golf_cart [name='golf_cart']
  14. robots.txt [name='robots_txt']
  15. blogs [name='blogs']
  16. blogs/<slug:slug> [name='blogpost_detail']

The current path, blogs/contact, matched the last one.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.