简体   繁体   English

如何使用virtualenv在OpenShift DIY上设置Django应用

[英]How to setup a Django App on OpenShift DIY with virtualenv

As RedHat openshift doesn't support Python 2.7, I choose to use Do-It-Yourself (DIY) application. 由于RedHat openshift不支持Python 2.7,因此我选择使用自己动手(DIY)应用程序。

I could able to install python 2.7, setuptools, PIP successfully using an amazing tutorial . 我可以使用一个很棒的教程成功安装python 2.7,setuptools,PIP。 Now I want to setup a VirtualEnv and install Django and other libs in it. 现在,我想设置一个VirtualEnv并在其中安装Django和其他库。

So, is there any similar (as mentioned above: step by step process) tutorial to configure? 因此,是否有任何类似的配置(如上所述:逐步过程)教程?

I wrote a example app which runs on Python 2.7, Django 1.4 powered by uWSGI (or Gunicorn; dev choice) and Jenkins CI.. Of course using Virtualenv 我编写了一个示例应用程序,该应用程序可在Python 2.7,由uWSGI(或Gunicorn;开发人员选择)支持的Django 1.4和Jenkins CI上运行。.当然使用Virtualenv

https://github.com/ksurya/openshift-diy-py27-django-jenkins (dead - repo gone), alternative is https://github.com/joskid/openshift-diy-py27-django-jenkins (seams to be the same) https://github.com/ksurya/openshift-diy-py27-django-jenkins (死了-回购不见了),替代方法是https://github.com/joskid/openshift-diy-py27-django-jenkins (接缝为是相同的)

The other similar example projects: 其他类似的示例项目:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM