I’ve been spending some time doing researches on how best work with django and improve my code performance. Then I did a bit of testing myself and decided to put it all together in a project for future’s sake and as a sample that showcases some django features and good practices. Any suggestions, comments and/or contributions are more than welcome.
- Python 2.7
- Django 1.9+
- PostgreSQL 9.4+
- Fabric
- Docker
Install Docker
Install Docker Compose
http://docs.docker.com/compose/install/
To run any command inside the Django Docker container, simply prepend
docker-compose run web
.Run the Django database migrations
:~$ docker-compose run web python manage.py migrate
Start the Docker containers
:~$ docker-compose up -d
This will start the containers in the background.