Forums

unexpected keyword argument 'TEMPLATE_DEBUG'

I followed, as best I could understand, the following: "WARNINGS: ?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following setting s into your default TEMPLATES dict: TEMPLATE_DEBUG."

I added to the TEMPLATES dictionary in SETTINGS.PY a new key-value pair" 'TEMPLATE_DEBUG' : True.

When I try to access the application from a browser I get:

Request Method:     GET
Request URL:    http://bgailer.pythonanywhere.com/tm/login
Django Version:     1.9.2
Exception Type:     TypeError
Exception Value:

__init__() got an unexpected keyword argument 'TEMPLATE_DEBUG'

Exception Location:     /home/bgailer/.virtualenvs/django18/lib/python3.4/site-packages/django/template/backends/django.py in __init__, line 33
Python Executable:  /usr/local/bin/uwsgi
Python Version:     3.4.3
Python Path:

['/var/www',
 '.',
 '',
 '/var/www',
 '/home/bgailer/.virtualenvs/django18/lib/python3.4',
 '/home/bgailer/.virtualenvs/django18/lib/python3.4/plat-x86_64-linux-gnu',
 '/home/bgailer/.virtualenvs/django18/lib/python3.4/lib-dynload',
 '/usr/lib/python3.4',
 '/usr/lib/python3.4/plat-x86_64-linux-gnu',
 '/home/bgailer/.virtualenvs/django18/lib/python3.4/site-packages',
 '/home/bgailer/mysite']

Sorry about the formatting; I don't know how to get a traceback from a web page to display properly.

What did I do wrong, how do I fix it, and can we change the WARNINGS to better explain what to do?

[edit by admin: formatting]

Hmm, the URL you posted seems to work now -- did you manage to work it out? If not, could you copy/paste the code you put into settings.py?