PyCharm 2017.3 Help

Navigation and Completion for Named URL Tags in Django Templates

This feature is supported in the Professional edition only.

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:
    /help/img/idea/2017.3/py_named_url_inspection.png
  • Django inspection checks argument values against regexp groups and adds warning if a group does not match:
    /help/img/idea/2017.3/py_named_url_inspection_1.png
  • Suggestion list on code completion includes names for the named arguments (if any):
    /help/img/idea/2017.3/py_named_url_completion.png
  • Ability to navigate to an appropriate regex group by pressing Ctrl+B on a url argument:
    /help/img/idea/2017.3/py_named_url_navigation.png

See Also

Last modified: 15 September 2017