为了能快速了解并处理您的问题,请提供以下基础信息:
免费版 [url=]7.9.8 python项目管理器2.3[/url]
CentOS 7.8.2003 x86_64(Py3.7.9)
想要运行一个项目,但是一直说启动不了,不知道怎么设置
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
项目安装教程如下
、新建虚拟环境 mkvirtualenv think --python=python3
2、安装依赖包 cd djapi
pip install -r requestments.txt
3、配置 APPID 和 APPsecret cp djapi/djapi/settings/local_.py djapi/djapi/settings/local.py
然后将其中的 id 和 key 替换成你自己的 WEIXIN = { 'url': '[color=var(--color-accent-fg)]https://api.weixin.qq.com', 'id': 'your appid', 'key': 'your appsecret' }
4、初始化表 python manage.py migrate
5、Run,并运行小程序 python manage.py runserver 0.0.0.0:8810
不知道药咋配置才可以启动
|