PyCharm 2022.1 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 Ctrl+B on a url argument:

    navigation
Last modified: 19 May 2021