How to change the gunicorn/nginx to use python3 instead of python2 (django template)

April 23, 2019 340 views
Nginx Django Ubuntu 18.04

How to change the gunicorn/nginx to use python3 instead of python2 (django template)

2 Answers

Greetings!

Great question. If the one-click image doesn’t provide you with the versions you need, it may make more sense to build a new stack on top of a blank slate (a droplet using a base OS image). We have a tutorial here for setting up Django on Ubuntu 18 that may help:

https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-ubuntu-18-04

Jarland

by Justin Ellingwood
by Kathleen Juell
Django is a full-featured Python web framework for developing dynamic websites and applications. Using Django, you can quickly create Python web applications and rely on the framework to do a good deal of the heavy lifting. In this guide, you will get Django up and running on an Ubuntu 18.04 server. After installation, you will start a new project to use as the basis for your site.
Have another answer? Share your knowledge.