Pip on Openshift - django

This may be a very silly question, but I am currently hosting a Django project on Openshift, and I have run into a funny problem. Both locally and remotely I am using pip version 7.1.2, and I've just updated Django to version 1.9.1. However, latest version of Django I can install on Openshift is 1.9b1. Is there anything else I need to update in order for Openshift to have the latest list (package)?
EDIT: Is that because I'm using python 3.3 on openshift and 3.4 locally?

This was my issue: The Django 1.8 series is the last to support Python 3.2 and 3.3.
I was using python 3.3 on Openshift.

Related

Django Server stuck after updating from python 3.9 to python 3.10 (using Django 4.1.5)

After upgrading python 3.9 to 3.10 the Django Server isn't working locally anymore (I'm using the Django Server Plugin for Pycharm). In my gitlab pipeline it seems to work allright.
Below you can see further details (click link to see screenshot):
With a Python 3.9 venv some errors occur, but the Django Server works nevertheless
With a Python 3.10 venv the same errors occur, but the Django Server doesn't start (after waiting 30 min)
(Working on linux and with pycharm)
I have the same requirements installed on both venv s except for the python version. I'd expect an error message, but it seems the execution is just stuck.

Can someone explain how to upgrade Django to another long-term support (LTS) release?

So Dood has a nice Django update graph...
https://arunrocks.com/django-release-schedule-and-python-3/
And I would like to upgrade from Django 1.11.17 to 2.2. I'm seeing recommendations from the Django project to incrementally upgrade. But how is a pip install --upgrade django going to change the current Django project from python 2.7 to python 3.6? Preciate it!

two versions of django installed in ubuntu 16.04

I have two versions installed in my envirment, django 1.8.7 and 1.10 which i have installed with pip! I want to use django 1.10 by default instead of the version 1.8.7. how can I do that ?
thank you
A good way to run multiple versions of Python programs is to use virtualenv.
Installation depends on your operating system, but there is more info here.
See this tutorial for information on how to use virtualenv with Django.
With virtualenvs, you can run multiple versions of Django that use multiple versions of Python. If you add virtualenvwrapper, you can use a simple command, like workon project1 to work on a Django 1.8 project that uses Python 2.7, or workon project2 to work on a Django 1.10 project that uses Python 3.5.
Edit: in 2020 you can do:
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install django
You can install any version of Django there that you want. That version of Django will be different than any version that might be on your system.
Read more about it here: https://docs.python.org/3/library/venv.html

django moderation compatibility with django 1.8

I am trying to install django-moderation but it downgrades my Django installation from 1.8 to 1.6.
it seems that it is compatible with django 1.8.
what am I doing wrong ?
it seems that it needs a PyPi upgrade ( current Pypi Version 0.3.5 ) and there is a ticket open to resolve that.
simple clone the repo and install it using python setup.py install, or use pip to install it.

Django-nonrel is not working with django 1.7

My project's backend support is Django 1.7 and my database support is mongodb.
To satisfy above requirement i need to install django-nonrel.
When I try to install django-nonrel with below command:
pip install git+https://github.com/django-nonrel/django#nonrel-1.5
It is replacing my django 1.7 to django 1.5.
Please help.
New to django and Mongo db.
You could try install django nonrel 1.6 by running
pip install git+https://github.com/django-nonrel/django#nonrel-1.6
It works for me with base configuration provided from here
And if you succeed with 1.7 - tell me how :)