Page not found (404)

No Category matches the given query.
Request Method: GET
Request URL: http://www.shimon.cn/category/pythonshu-ji.html
Raised by: blog.views.CategoryDetailView

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

  1. ^admin/
  2. [name='index']
  3. page/<int:page>/ [name='index_page']
  4. article/<int:year>/<int:month>/<int:day>/<int:article_id>.html [name='detailbyid']
  5. category/<slug:category_name>.html [name='category_detail']

The current path, category/pythonshu-ji.html, 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.