PyCharm Not Properly Recognizing Requirements - Python, Django

后端 未结 4 1202
别那么骄傲
别那么骄傲 2021-02-03 20:53

Often requirements show up in requirements.txt like this:

django-registration

But in INSTALLED_APPS it appears as re

4条回答
  •  隐瞒了意图╮
    2021-02-03 21:25

    PyCharm should be able to figure this out, but it doesn't. For now, I just add # noinspection PyPackageRequirements to each import with this warning to suppress it. I'd rather not, but it works for now.

提交回复
热议问题