{"repo":"PacktPublishing/Django-5-By-Example","free":true,"listed":false,"github":"https://github.com/PacktPublishing/Django-5-By-Example","clone":"git clone https://github.com/PacktPublishing/Django-5-By-Example.git","description":"Django 5 By Example (5th Edition) published by Packt","language":"CSS","stars":540,"topics":["ajax","api","asgi","celery","cms","javascript-programming","nginx","postgres","redis","rest-api-design"],"license":"MIT","category":"databases-storage","readme_excerpt":"Django 5 by Example This is the code repository for Django 5 by Example, written by Antonio Melé and published by Packt. It contains all the supporting project files necessary to work through the book from start to finish. Technical Reviewer: Mark Walker Foreword: Paolo Melchiorre Instructions The code is organised into directories with the chapter number. For example, Chapter02 contains the source code for chapter 2. Each chapter folder has a requirements.txt file that includes all packages required to run the code of that chapter. These can be installed with the command pip install -r requirements.txt . Run the Django development server with the command: Docker Compose is explained in Chapter 17. However all chapters include a Docker Compose configuration and a management script (contribution by @marksweb). Commands to build and run using Docker Compose: List of commands: - build [ ] : Builds Docker images. Optional arguments can specify specific images to build. - exec [ ] : Execute a command in a container. - compose : Minimal wrapper around Docker Compose, ensuring correct configuration files are loaded. - migrate [ ] : Apply any unapplied Django migrations. - makemigrations [ ] : Create a new Django migration, specifying additional arguments if needed. - check : Validate Django settings. - shell : Open a bash terminal in the specified container (web run). - start [ ] : Start the Django server and dependent services. Use -d to run detached. - stop [ ] : Stop the Django s","default_branch":null,"files":null,"tree":[],"storefront":"/r/PacktPublishing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PacktPublishing/Django-5-By-Example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}