template_name in view, cannot find declaration

I use pinax, and have adopted a style that I saw in their code where the template name is included in the view function's parameter list as this:

def hello_world(request, template_name='home.html')


Pycharm cannot resolve the template when I try to go to it.

Is this as designed, or something I can configure so that the IDE can find it?

Thanks in advance!

0
1 comment

Hello Christian,

PyCharm doesn't currently support navigation to templates when this pattern

is used. You're welcome to file a feature request at http://youtrack.jetbrains.net/

I use pinax, and have adopted a style that I saw in their code where

the template name is included in the view function's parameter list as

this:

def hello_world(request,
> template_name='home.html')
> 
> 

Pycharm cannot resolve the template when I try to go to it. Is this as

designed, or something I can configure so that the IDE can find it?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.