Pycharm在大多数时候都运作良好。但是它无法自动完成一些代码。
以下“对象”无法完成。谁知道为什么?
我使用Pycharm社区版和Django 2.2
class SnippetList(APIView):
"""
List all snippets, or create a new snippet.
"""
def get(self, request):
snippets = Snippet.objects.all() # The objects can't be auto completed.
serializer = SnippetSerializer(snippets, many=True)
return Response(resp)
省电模式关闭。