Python 报错:Class has no 'objects' member in django

问题描述


  • 使用 visual studio code,引用类时报错 Class has no 'objects' member in django

问题解决


  • 安装pylint-django
pip3 install pylint-django
  • 配置 visual studio code


    Python 报错:Class has no 'objects' member in django_第1张图片
    配置位置

    Python 报错:Class has no 'objects' member in django_第2张图片
    配置参数

你可能感兴趣的:(Python 报错:Class has no 'objects' member in django)