Skip to content

Instantly share code, notes, and snippets.

@edwinpgm
Last active September 25, 2018 17:40
Show Gist options
  • Save edwinpgm/527b9b2b563e05f16efd81567c490caa to your computer and use it in GitHub Desktop.
Save edwinpgm/527b9b2b563e05f16efd81567c490caa to your computer and use it in GitHub Desktop.
Deploy django
Install 3.6
https://www.rosehosting.com/blog/how-to-install-python-3-6-on-ubuntu-16-04/
Deploy django
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
Error Createsuper user
$ export PYTHONIOENCODING=utf-8
$ export LC_ALL="en_US.UTF-8"
$ export LANG="en_US.UTF-8"
$ export LANGUAGE="en_US.UTF-8"
Cuando cargamos con gunicorn hay que cambiar el wsgi para que trabaje con el settings de production.
Reiniciar server
$ vim web/wsgi.py
$ sudo systemctl daemon-reload
$ sudo systemctl restart juridico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment