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

See Also

Last modified: 3 February 2015
comments powered by Disqus