Class has no 'objects' member in django
场景
在使用django时,源码如下
from django.http import HttpResponse
from .models import Destination
def index(request):
boards = Destination.objects.all()
...
工具检测报错如下
: Class 'Questionhas no objects...
原创
2019-07-13 10:03:41 ·
2454 阅读 ·
0 评论