Django: Unresolved Template References

Answered

Python 3.9, Django 3.1.7

Pycharm showing Unresolved Template References.

The app works fine.

How can I fix this ?

0
5 comments

Hi,

PyCharm doesn't support pathlib yet, unfortunately, https://youtrack.jetbrains.com/issue/PY-13911.

You need to replace your BASE_DIR and STATICFILES_DIRS https://youtrack.jetbrains.com/issue/PY-43897#focus=Comments-27-4333564.0-0

0

Hi,

It didn't work. :(

Pycharm 2020.3.4

0

Is it reproducible in a brand new project?
What about a project created with Django 2?

0

Yes it is reproducible in a brand new project.

I have not tried it in Django 2 because am currently working in Django 3.

0

Could you upload that project to our FTP server and let me know the Upload ID? https://uploads.services.jetbrains.com/

I'll check if it works in my environment.

0

Please sign in to leave a comment.