pycharm does not debug on extended django templates

Hi , 

 

I am trying debugging in templates but I noticed   that pycharm allows me t

o set breakpoints in base.html file  but if I use this file as base to extend, let`s say

files like home.html  it never stops inside the file base.html but in home.html

it is possible to stop the execution.

The structure of my templates are

project

----app1

...

----template

---------base.html

---------home.html

 

home.html file contains :

{% extends 'base.html' %}

 

 

settings:

 

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

The execution seems to be ok.

Someone could tell if there is something in the code or something that i need configure in Pycharm

in order the breakpoints works in my base.html.

I am using Pycharm 2016.1, I tried 2016.2 but the behavior is the same.

 

 

Thanks in advance.

Julian 

Please sign in to leave a comment.