How do I update Django on Openshift?

后端 未结 2 1656
清酒与你
清酒与你 2021-01-28 15:31

I\'m learning to deploy Django on Openshift. Right now I have a python-2.7 cartridge up and running with Django 1.6 The git repo cloned in the cartridge is,

git://github

2条回答
  •  离开以前
    2021-01-28 16:11

    The easiest way to achieve this is to change the setup dependencies (install_requires parameter for setup ()) in setup.py. Instead of

    packages = ['Django<=1.6',]
    

    as in the cartridge default you could write

    packages = ['Django>=1.7,<1.8',]
    

    to get the latest version of Django 1.7. More details of how to specify values can be found in the Python Packaging User Guide.

    With your next git push this file will be executed and the packages get updated, if required.

提交回复
热议问题