Last active
September 25, 2018 17:40
-
-
Save edwinpgm/527b9b2b563e05f16efd81567c490caa to your computer and use it in GitHub Desktop.
Deploy django
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
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