First time here? Check out the FAQ!

TEMPLATE_DEBUG warning messages?

I use Wing to work on my Django projects, and I have dutifully set TEMPLATE_DEBUG in my settings file.  Does anyone know how to suppress this error message that I get every time any Django process starts?

The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.

Chris Curvey's avatar
Chris Curvey
asked 2017-12-19 11:09:00 -0500
Wingware Support's avatar
Wingware Support
updated 2019-03-13 08:52:21 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


In the TEMPLATES  section of your you want to add a line that says "'debug': True,"Wing's project setup scripts should be doing that for Django >= 1.9 instead of setting TEMPLATE_DEBUG.Here's an example that works for me with Django 1.11:

        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
        'debug': True,
Wingware Support's avatar
Wingware Support
answered 2017-12-19 11:40:00 -0500
Wingware Admin's avatar
Wingware Admin
updated 2019-03-07 08:39:29 -0500
edit flag offensive 0 remove flag delete link


Hmm, I'm on Django 1.11 -- when I do that, I don't get a warning message on startup, but when I render a template, I get:ImproperlyConfigured: Unknown parameters: debug

Chris Curvey's avatar Chris Curvey (2017-12-19 12:26:00 -0500) edit

Are you sure the 'debug: True line is inside the OPTIONS dict?  In the above, the indentation is wrong and makes it look like it's within the top-level dict instead, but it's part of the dict after OPTIONS.

Wingware Support's avatar Wingware Support (2017-12-19 13:16:00 -0500) edit

Ah, that was it.  Thanks!

Chris Curvey's avatar Chris Curvey (2017-12-19 15:03:00 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer