I have written a templatetag to solve the repetitive creation of a special form. Got some problems with the logic, so i inserted pdb.set_trace() to get to its roots. But strangely this set_trace() never seems to be executed when i call the templatetag. The tag looks like this:

Usually i get the chance to interact with the script at the line of the set_trace() when i do that. When i insert the set_trace() into the GetLoopForm.render method it works, but not when i insert it into get_loop_form. Why not?

edit: restarted the Django development server manually, which resulted in the code above working. I still do not understand why this happened.