PyCharm
 
Get PyCharm

Named URL tags in Django templates

Last modified: 17 June 2024

PyCharm provides extensive support for the named url tags. This support includes:

  • Django inspection that checks whether the required arguments are passed correctly to a {% url %} tag:

    incorrect argument
  • Django inspection checks argument values against regexp groups and adds warning if a group does not match:

    a regex group does not match
  • Suggestion list on code completion includes names for the named arguments (if any):

    template completion
  • Ability to navigate to an appropriate path by pressing Ctrl0B on a url argument:

    navigation