Created
December 17, 2018 22:46
-
-
Save melizeche/dd288e2daadaa3737006d35e21a23080 to your computer and use it in GitHub Desktop.
Upgrade DigitalOcean's "One click apps" Django installation to Python3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install -y python3 python3-pip | |
pip3 install django==1.11.11 netifaces psycopg2-binary gunicorn==19.7.1 gevent | |
sed -i 's/python/python3.6/g' /usr/bin/gunicorn | |
sed -i 's/python/python3.6/g' /home/django/django_project/manage.py | |
/home/django/django_project/manage.py migrate | |
systemctl restart gunicorn.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment