Page not found (404)

No candidate found matching the query
Request Method: GET
Request URL: http://ftm.copolitics.co/candidate_detail/None
Raised by: ftm.views.CandidateDetailView

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

  1. admin/
  2. new_message/ [name='new_message']
  3. thanks/ [name='thanks']
  4. about/ [name='about']
  5. messenger_detail/<slug:slug> [name='messenger_detail']
  6. [name='index']
  7. candidates/ [name='candidates']
  8. message_detail/<slug:slug> [name='message_detail']
  9. candidate_detail/<slug:slug> [name='candidate_detail']

The current path, candidate_detail/None, 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.