Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django downgrade from 1.9 to 1.8

I am trying to use a Django package that is only compatible with Django 1.8, so I think I should downgrade my current project from 1.9 to 1.8. What would be the best course of action for achieving that?

like image 908
Dani Mateo Avatar asked Oct 09 '16 14:10

Dani Mateo


People also ask

How do I downgrade my Django version?

Change the Django version# If you want to upgrade Django, then you can run pip install --upgrade django . If you would like to downgrade, then you can run pip install django==<versionnumber> .

How do I change Django version in project?

Go to Settings -> Project Interpreter . Double-click the Django package. Activate the check box Specify version and select the version you want.

How do I install different versions of Django?

Django can be installed easily using pip . In the command prompt, execute the following command: pip install django . This will download and install Django. After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.

What version of Django should I use?

¶ Since newer versions of Python are often faster, have more features, and are better supported, the latest version of Python 3 is recommended.


1 Answers

To downgrade Django to the most recent release in the version 1.8 series:

pip install "Django~=1.8.0"

This ~= syntax means to install the latest point release that is backwards-compatible with 1.8. At the time of writing, that's v1.8.18, however should a v1.8.19 be released at a later date the command shown above would select it instead.

For a list of what has been deprecated in 1.9, you should review the release notes here:

https://docs.djangoproject.com/en/1.10/releases/1.9/

like image 193
wim Avatar answered Sep 26 '22 01:09

wim