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?
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> .
Go to Settings -> Project Interpreter . Double-click the Django package. Activate the check box Specify version and select the version you want.
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.
¶ Since newer versions of Python are often faster, have more features, and are better supported, the latest version of Python 3 is recommended.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With