{# Header #}
资源 30

PyBlade

Development Mode
{# Error Card #}

{{ error_type }}

{{ error_message }}

{# File Info #} @if(template_path)
Template file: {{ template_path }}
Line: {{ line }}
@endif {# Code Preview #} @if(code_lines)
{{ template_path.name }}
@for(line in code_lines) @if(line.is_error)
{{ line.number }} {{ line.content }}
@else
{{ line.number }} {{ line.content }}
@endif @endfor
@endif {# Where it came through, for an error that points at no template #} @if(traceback)
Traceback
{{ traceback }}
@endif {# Footer #}
This detailed error page is only shown in development mode. In production, users will see a generic error message.
{# Additional Info #}

Quick Fix

{{ help }}

Documentation

Visit the official PyBlade documentation for more information about template syntax and error handling.