PyCharm 2023.2 Help

Named URL tags in Django templates

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 Control+B on a url argument:

Last modified: 28 August 2023