Upgrade Django

NOTE: If you are using Django 1.x, you need to replace the python3 command with python.

NOTE: Before upgrading Django, make sure that your Django applications are compatible with the new version.

Follow the steps below:

  • Open the Bitnami Console and load the Bitnami environment.

  • Execute this command from the uncompressed directory:

    $ sudo pip install --upgrade Django --install-option="--prefix=installdir/apps/django" (Linux and Mac OS X)
    > pip install --upgrade Django --install-option="--prefix=installdir\apps\django --install-lib=installdir\apps\django --install-scripts=installdir\apps\django\django\bin --install-data=installdir\apps\django" (Windows)

    If you want a specific version of Django (not the latest one), add the version number as shown below:

    $ sudo pip install --upgrade Django==1.6.5 --install-option="--prefix=installdir/apps/django" (Linux and Mac OS X)
    > pip install --upgrade Django==1.6.5 --install-option="--prefix=installdir\apps\django --install-lib=installdir\apps\django --install-scripts=installdir\apps\django\django\bin --install-data=installdir\apps\django" (Windows)
  • Edit the script (usually in installdir/apps/django/bin) and change the first line to use python3 instead of .python2.7.bin:

Last modification August 31, 2018