The Django Docker Boilerplate is a template for building Django Rest Framework projects with additional features such as Redis, RabbitMQ, and Celery. The template is no longer supported, as it has been updated to a second version. It comes with a variety of plugins for different types of projects and allows for customization by changing the framework used. The template provides a basic login and homepage, but additional views and HTML files need to be created. The template now supports Django Channels.
To install the Django Docker Boilerplate, follow these steps:
django-admin startproject --template=https://github.com/tiagoarasilva/django-boilerplate/archive/master.zip --extension=py,md,html,txt,scss,sass project_name
docker volume create --name=project_name_db_data
docker-compose up (downloads necessary resources for building Docker containers)
docker-compose exec project_name bash (go inside the container)
make run (start the server within the Docker container)
make shell (start the shell_plus)
To run your project for the first time:
make migrate or
python project_name/manage.py migrate to run the first migration.
python project_name/manage.py createsuperuser to create a super user.
To run tests:
make unittests TESTONLY='profiles.tests.models_tests' or
make unittests TESTONLY='profiles.tests.models_tests:ProfileUserTest.test_create_user' for a specific test.
The Django Docker Boilerplate is a template for building Django Rest Framework projects with additional features such as Redis, RabbitMQ, and Celery. It provides flexibility by allowing customization of the framework used and comes with a variety of plugins for different project types. The template is no longer supported and has been updated to a second version. It now supports Django Channels for real-time communication. The installation process involves using Docker, creating necessary views and HTML files, and running commands to setup the project and run tests.