Page not found (404)

No Notice matches the given query.
Request Method: GET
Request URL: http://oabimperatriz.com.br/media/noticias/None/
Raised by: media.views.get_notice

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

  1. admin/
  2. [name='home']
  3. agendamento/ [name='schedule_home']
  4. historia/ [name='history']
  5. desinscrever/ [name='remove_subscriber']
  6. media/ comunicados/ [name='list_notifications']
  7. media/ noticias/ [name='list_notices']
  8. media/ noticias/<str:slug>/ [name='get_notice']

The current path, media/noticias/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.