【发布时间】:2021-02-08 05:13:26
【问题描述】:
我想知道如何在我的 django 应用程序使用 gunicorn 和 nginx 运行时运行一些外部 python 脚本?
本地没有 gunicorn 和 web 服务器,我只需使用以下命令打开一个 python shell:
python manage.py shell
然后使用以下命令在我的 django 应用程序上运行我的 python 脚本:
exec(open('myscript.py').read())
你能建议吗?
PS:我需要在特定时间而不是在启动时运行脚本。
亲切的问候。
【问题讨论】:
标签: python django nginx gunicorn