【问题标题】:Django How to Deploy Project pythonanywhere.comDjango 如何部署项目 pythonanywhere.com
【发布时间】:2020-03-20 18:48:37
【问题描述】:

这是此未答复帖子的以下问题:
Django Move Project from Windows Host to Linux Host (and Deploy)

这次我试着按照这个方法:
https://tutorial.djangogirls.org/de/django_installation/
https://tutorial.djangogirls.org/de/deploy/#registriere-dich-f%C3%BCr-ein-pythonanywhere-konto

所以我将我的代码上传到 Github 并公开发布,并在以下 URL 创建了一个 pythonanywhere 项目:
http://mvanthiel.pythonanywhere.com/catalog/ui/

我还创建了一个虚拟环境并创建了 .gitignore 文件。

在我的 Windows (Dev) 主机上,网站运行正常。
在 pythonanywhere.com 上它没有。

在 Windows Dev 上,我将 Projekt 内容推送到 git,如操作指南中所述。
在 pythonanywhere.com 上,我安装了 pip 模块。
pip3.6 install --user pythonanywhere
然后我尝试使用以下命令在 pythonanywhere.com 上自动配置其余部分:
pa_autoconfigure_django.py --python=3.6 https://github.com/HigeMynx/onboarding.git

之后,该网站在线可用,但与我之前未答复的帖子中的描述完全相同,Django 仅在 Linux 机器上缺少模板,我不知道为什么。

如果需要,我可以让你访问我的 pythonanywhere.com bash,如果需要,你可以查看我的 git 代码。

请帮帮我。

【问题讨论】:

标签: python django github pythonanywhere django-deployment


【解决方案1】:

我发现了我的错误。那里是绿盒子里的一个空白。

【讨论】:

    猜你喜欢
    • 2013-10-03
    • 2020-04-30
    • 2020-03-20
    • 1970-01-01
    • 1970-01-01
    • 2021-12-11
    • 2020-10-18
    • 2016-01-11
    • 2016-10-01
    相关资源
    最近更新 更多