[英]Django-admin AttributeError:
I've just started learning how to use django for some school projects.I installed django with pip but when I try to start a project with django-admin startproject abc
I get error:
File "c:\users\user\.virtualenvs\project-gnrbo21b\lib\site-packages\django\utils\crypto.py", line 74, in <genexpr>
return ''.join(secrets.choice(allowed_chars) for i in range(length))
AttributeError: module 'secrets' has no attribute 'choice'
我在互联网上找不到任何解决方案,有什么想法吗?
谢谢
每个 django 版本都支持对应的 python 版本。 例如最新的 3.1.* 版本支持 Python 3.6、3.7、3.8 和 3.9(详情)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.