I am trying my first deployment. Following this instructions. The problem is that those instructions are for python 2.7, while I am on 3+. So I have mixed it with some another instructions. I have created a virtual environment for python 3. Run python manage.py runserver 0.0.0.0:8000 also successfully.
But stopped on the point of configurating Gunicorn
.
When I write vim bin/gunicorn_start
- I come to vim redactor, I write some configuration, but next when I try save and exit with :wq
- I get E212
error, which in brief says that I can't save that file, but I don't know the reason of that.
Why does that happen? What am I doing wrong?
Here is a structure of folders beginning from my_project_folder mowing to the top level folder, got with ls
, may be that will help somehow (first in the row is folder where we come from).:
^ Cosmo
| polo polo_env
| environments
| chiefir
| home bin boot dev etc initrd.img lib lib64 lost+found media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuzcd