How to install an especific python and django versions on digital ocean ?

Posted June 2, 2021 215 views
Python Frameworks

Hello everybody,

I am trying to deploy an old django app in digital ocean, this app is using django 1.8, python 2.7, is it posible to deploy this app here ? and if so, any guidance, link to right documentation or reference will be greatly appreciated.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @JoseGalvan,

Yes, it’s possible! As long as you find a way to install those exact versions that is.

Let’ start with Python:

To install Python 2 version on Ubuntu 20.04 enter one of the following commands:

sudo apt install python2


sudo apt install python-minimal

Then you can check your current Python version with:

$ python2 -V
Python 2.7.17

Now, installing Django:

You need to have pip installed first:

apt-get install python-pip

You might need to do something like:

apt-get install python2-pip

Once you have pip for python2, you can run:

pip install Django==1.8.1