PyCharm 2017.3 Help

Navigation and Completion for Named URL Tags in Django Templates

This feature is only supported in the Professional edition.

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 regex group by pressing Ctrl+B on a url argument:
    py named url navigation
Last modified: 28 March 2018

See Also