简体   繁体   中英

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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