gpt4 book ai didi

python - 如何使用 virtualenv 在 OpenShift DIY 上设置 Django 应用程序

转载 作者:行者123 更新时间:2023-12-02 01:45:26 26 4
gpt4 key购买 nike

由于RedHat openshift不支持Python 2.7,我选择使用Do-It-Yourself (DIY)应用程序。

我能够使用惊人的 tutorial 成功安装 python 2.7、setuptools、PIP 。现在我想设置一个 VirtualEnv 并在其中安装 Django 和其他库。

那么,是否有类似(如上所述:逐步过程)的配置教程?

最佳答案

我编写了一个示例应用程序,它在 Python 2.7、由 uWSGI(或 Gunicorn;开发选择)和 Jenkins CI 提供支持的 Django 1.4 上运行。当然使用 Virtualenv

https://github.com/ksurya/openshift-diy-py27-django-jenkins (死了 - repo 消失了),替代方案是 https://github.com/joskid/openshift-diy-py27-django-jenkins (接缝是一样的)

其他类似的示例项目:

  1. https://github.com/ehazlett/openshift-diy-py27-django
  2. https://github.com/zemanel/openshift-diy-django-example

关于python - 如何使用 virtualenv 在 OpenShift DIY 上设置 Django 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11544487/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com