Django Template Debugging

When attempting to debug an admin template override (, I keep getting this error:

WARNING: Template path is not available. Please set TEMPLATE_DEBUG=True in your to make django template breakpoints working

I have it set. Here's the relevant parts of my

DEBUG = True



TEMPLATE_DIRS = ('/Users/jay/Projects/Python/Django/PADjango/templates',)

My template file:

{% extends "admin/change_form.html" %}
{% load i18n %}
{% block after_field_sets %}
    {% if not add %}
        <p>Here's some extra stuff to show but only when editing an existing record.</p>
    {% endif %}
{% endblock %}

My guess is that the debugger is getting confused because this template is extending the standard admin change template, located here:


I've added the path (django/contrib/admin/templates), both relative and full path, to the TEMPLATE_DIRS tuple in but it's still not working. Is there some combination that I'm just not getting right?
1 comment
Comment actions Permalink
Problem solved. I had my template overrides in directories named for models (so they were model-specific). Turns out you shouldn't capitalize the directory name ("Customer" vs "customer") despite the fact that the model name is capitalized. Interesting that when deployed on my development machine the overrides loaded correctly but once I deployed to my production machine the overrides didn't work at all.

Please sign in to leave a comment.