...
At this stage, you should be able to use a browser to test that the Django server is up and running. Go to http://<server address>:8000
.
Setup Docker Volume
A Docker volume is the preferred way of storing state information for the Docker container. For example, the db.sqlite3
file is best stored on a Docker volume, so that it can be referenced by any container. Therefore, as the Django project codebase develops, each version of the container can use the same data store.
Start First App
Navigate to the root directory of the Django project (where the
manage.py
file is located).Use
manage.py
to initialize the app:Code Block python3 manage.py startapp <app name>
...