vmwaredjango

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:

  • Execute this command from the uncompressed directory:

    $ sudo pip install --upgrade Django --install-option="--prefix=/opt/bitnami/apps/django"
    

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

    #!/opt/bitnami/python/bin/python3