upgrading server from python2 to python 3

August 14, 2017 168 views
Python Ubuntu 16.04

I deployed a website over Django using Nginx, Gunicorn, and Django on an Ubuntu 16.04 droplet, par this tutorial. Now it has come to my attention that my development server uses Python 3, whereas the droplet's virutalenv was setup with Python 2, and Gunicorn was set up with Python 2. I'm interested in setting up Python 3 on the droplet, but I don't know what that entails. Do I have to reconfigure Gunicorn from scratch to set up Python 3, or is there something simple I'm missing?

Be the first one to answer this question.