Page not found (404)

No Occupation matches the given query.
Request Method: GET
Request URL: https://prussianroots.com/occupation/dienstkunst/
Raised by: research.views.occupation_by_code

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

  1. admin/
  2. [name='index']
  3. ^search/$ [name='views.search']
  4. ^debug_email/$ [name='views.debug_send_email']
  5. ^person/$ [name='person_index']
  6. ^person/(?P<person_id>[\d]+)/((?P<citations_cmd>(show|hide))/)?$ [name='person_by_id']
  7. person/<year:birth_year>_<last_name:last_name>_<first_name:first_name>/ [name='person_by_year_name']
  8. person/<year:birth_year>_<last_name:last_name>_<first_name:first_name>/<citations_cmd:citations_cmd>/ [name='person_by_year_name']
  9. ^person/(?P<person_id>[\d]+)/bio/ [name='person_bio']
  10. ^page/$ [name='page_index']
  11. ^page/(?P<page_code>[\w]+)/$ [name='page_by_code']
  12. ^fact/$ [name='fact_index']
  13. ^fact/(?P<fact_id>[\d]+)/$ [name='fact_by_id']
  14. ^occupation/$ [name='occupation_index']
  15. ^occupation/(?P<occupation_code>[\w]+)/$ [name='occupation_by_code']

The current path, occupation/dienstkunst/, 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.