Y
Y
Yeldos Adetbekov2017-02-14 18:48:26
Django
Yeldos Adetbekov, 2017-02-14 18:48:26

How to change python2 to python3 when deploying to DO(Django-one-click)?

Welcome all! For the second day in a row, I can’t deploy a project on DigitalOcean (oneclick app) normally. Unfortunately this snapshot is hosted in python2. And I worked on python3. Here I have standard nginx configurations. Also decided to make alias on this server. alias python=python3 and about pip too. Everything was fine, but when I launched it through the standard gounicorn socket through nginx. Gave error 502. I understand that gunicorn uses an old version of python. Useful in ps uxa. And just like Worker, a unicorn is hanging. But it is called like this: /usr/bin/python and I needed python3. All dug, but all in vain. Removed it with pip uninstall. And installed again. It still starts the standard service. I wrote custom configurations, but nginx does not see them. When restarting, all teams work on the standard guni root. At the end, I freaked out and launched through the infamous django_project.wsgi:application at the root of the project (MANUALLY) (All modules function perfectly! ). And with changes, the restart does not work. You need to kill the process. And if the server falls, I generally keep quiet about it (It will not start again). I'm ashamed to talk about this, but I do the deployment through regular ftp. Somehow the hands did not reach the git. Need help. Please, help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-02-14
@dosya97

No
way Make a normal droplet and find the manual for installing django in virtualenv on the same BEFORE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question