Django Errors in template

Answered

Hello,

I'm trying the professional version of PyCharm.

In the html Django template the IDE show me this errors when using variables or pipelines:

It seems to reject the idea that i can use the "dot".

The code work correctly. Here's my settings:

What am I doing wrong?

Thanks

0
3 comments

Hi Salem, could you please point me to the corresponding Django docs page? Not sure if I understand how 7.form.month supposed to work.

0
Avatar
Permanently deleted user

At this link there is an example:

https://docs.djangoproject.com/en/2.1/ref/templates/language/

It is a context wrote in this way:

"context = {7: {'form': form}}"

0

Got it, thank you. I created a ticket in our bug tracker: https://youtrack.jetbrains.com/issue/PY-32390 please follow it for updates.

1

Please sign in to leave a comment.