当前位置:论坛首页 > Linux面板 > 求助

【待反馈】使用python管理只能安装不能启动

发表在 Linux面板2023-5-24 18:38 [复制链接] 1 2100

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

免费版 [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





不知道药咋配置才可以启动
使用道具 举报 只看该作者 回复
发表于 2023-5-24 23:17:16 | 显示全部楼层
您好,无法启动您可通过查看项目日志进行分析,您也可直接在终端尝试是否能够正常启动
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表