Question

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

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.

TIA Jose.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

OR

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