PyCharm 2018.2 Help

Navigation and Completion for 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:

    py named url inspection

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

    py named url inspection 1

  • Suggestion list on code completion includes names for the named arguments (if any):

    py named url completion

  • Ability to navigate to an appropriate path by pressing Ctrl+B on a url argument:

    py named url navigation

Last modified: 12 October 2018

See Also