Django Stack
I’ve created a django-deploy repo with branches containing ‘jump-starts’ for the following scenarios:
- Vagrant VM provisioned manually via ssh
- Vagrant VM provisioned via shell
- Vagrant VM provisioned via Ansible
All end up with a VM running Nginx, Gunicorn, Django under Python3 in a Virtualenv, Supervisor and PostgreSQL.
References
- Provisioning django application using ansible
- Custom Vagrant box for jump-starting Django projects using Cookiecutter
- Setting up Django with Nginx, Gunicorn, virtualenv, supervisor and PostgreSQL
- Combines Nginx, Gunicorn, virtualenv, supervisord and PostgreSQL into a Django server running on Linux
- https://github.com/jcalazan/ansible-django-stack
- Ansible Playbook based on the above for setting up a Django app with Nginx, Gunicorn, PostgreSQL, Celery, RabbitMQ, Supervisor, Virtualenv, and Memcached. A Vagrantfile for provisioning a VirtualBox virtual machine is included as well.
- Needed to ensure was running latest pip
- Needed to manually install nginx in vagrant vm when ansible failed
- https://github.com/postrational/hello_django
- Simple Django project for demo purposes
Plans/TODOs