{# 404 Not Found page for Duck Framework. #} {# Extends base.html. Adds a debug-only route registry panel when DEBUG=True. Extra context variables (on top of base.html): routes (list[dict]) — [{pattern, name, methods}] from RouteRegistry use_django (bool) — True when USE_DJANGO=1 is active #} {% extends "base.html" %} {% block main %} {# Status eyebrow pill #} 404 · Not Found {# Primary heading #}
{% if debug and routes %} No route matched the requested path. Browse the registry below to find the right one. {% else %} The page you're looking for doesn't exist or has been moved. {% endif %}
{# Request metadata row #} {% if request is defined and request %} {% endif %} {# Debug-only section #} {% if debug %} {# Django side-URL hint #} {% if use_django %}USE_DJANGO=True is active — this URL may be registered in
Django only. Add it to DJANGO_SIDE_URLS if that is the case.
RouteRegistry.
DEBUG=True is set.
Switch to DEBUG=False to show the standard response.