VSCODE未自动完成所有DJANGO模块'功能
看起来自动完成对某些Django模块的所有功能都不适用吗?例如,我正在进口 来自django.contrib.auth.models导入user
,
但是当尝试创建新用户时:
user = user.objects.create_user(etc)
未显示create_user函数。
另外,如果我输入了不存在的函数的名称,则vscode将显示错误,示例下面:
请有什么想法吗?
仅供参考:我正在Ubuntu上运行VScode,而Django安装在VENV中。解释器设置为 .../venv/bin/python3.10
It looks like autocompleting is not working for all the functions for some Django modules? For example, I am importingfrom django.contrib.auth.models import User
but when trying to create a new user:
user = User.objects.create_user(etc)
is not showing the create_user function.
Also, if I type in a name of non-existing function VSCode will show an error, example below:
Any thoughts please?
FYI: I am running VSCode on Ubuntu and django is installed in a venv. Interpreter is set to .../venv/bin/python3.10
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论