Skip to content

Viewing a template gives a 500 error #2127

Closed
@jwells80

Description

@jwells80

I'm getting the following error when trying to view any template via the DJango Debug Toolbar.

Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
File "/usr/local/lib/python3.13/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.13/site-packages/debug_toolbar/decorators.py", line 34, in inner
    return view(request, *args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/debug_toolbar/decorators.py", line 46, in inner
    return view(request, *args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/debug_toolbar/panels/templates/views.py", line 45, in template_source
    source = loader.get_contents(origin)
File "/usr/local/lib/python3.13/site-packages/django/template/loaders/cached.py", line 26, in get_contents
    return origin.loader.get_contents(origin)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_contents'```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions