When I debug my application using PyCharm 5.0.3, I want to insert some breakpoints into the template files (Django 1.9).
However, when I launch the application in PyCharm debug mode, it prints the following warning as soon as it processes the first request.
WARNING: template path is not available. Set TEMPLATE_DEBUG = True to your settings.py to make django template breakpoints
I read here that TEMPLATE_DEBUG is deprecated, and I already have this parameter in the new format. I also tried marking the template directory as "Template Folder", as in another Stackoverflow article, but this does not help.
Has anyone seen this problem before? Here are my settings
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'debug': DEBUG,
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]