1、python点击run或者debug的时候出现Type ‘manage.py help <subcommand>‘ for help on a specific subcommand.
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[auth]
changepassword
createsuperuser
[contenttypes]
remove_stale_contenttypes
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
sendtestemail
shell
showmigrations
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
test
testserver
[sessions]
clearsessions
[staticfiles]
collectstatic
findstatic
runserver
Process finished with exit code 0
解决办法如下:
点击运行里的编辑配置,然后 在形参里添加runserver
2、ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}
原因:究其根本是py2neo的版本不同,出现上述问题时是由于你的py2neo版本太高,新版本的写法不是这种
解决办法:安装低版本的py2neo 例如4.3.0
命令:
pip install py2neo==4.3.0 -i https://pypi.douban.com/simple
安装即可自动卸载之前的py2neo,并安装4.3.0版本的py2neo,问题解决。
3、AttributeError module 'time' has no attribute 'clock'
原因:Python3.8不再支持time.clock,但在调用时依然包含该方法;
解决办法:用time.perf_counter()替换
time.perf_counter()
参考网页:
ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}_带鱼工作室的博客-CSDN博客https://blog.csdn.net/liaoningxinmin/article/details/1166706093、 Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客https://blog.csdn.net/jt_121217/article/details/104914923