Page not found (404)

No Attraction matches the given query.
Request Method: GET
Request URL: https://www.china-travel-guide.net/attraction/beihai/beihai-submarine-world/
Raised by: maincontent.views.attractionview

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

  1. [name='index']
  2. index2/ [name='index2']
  3. admin/
  4. city/<slug:slug>/ [name='city-detail']
  5. city2/<slug:slug>/ [name='city-detail2']
  6. attraction/<slug:cityslug>/<slug:slug>/ [name='attraction-detail']

The current path, attraction/beihai/beihai-submarine-world/, 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.