nativeInstallerpootle

Upgrade Pootle

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

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 django-admin.py script (usually in installdir/apps/django/bin) and change the first line to use python3 instead of .python2.7.bin:

    #!installdir/python/bin/python3
    
Last modification August 31, 2018