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'
I can't find any solutions on internet, any ideas?
Thank you
Each django version supports some corresponded python version. For example latest 3.1.* version supports Python 3.6, 3.7, 3.8, and 3.9 ( details )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.