...
To create the Docker volume, on the host:
Code Block docker volume create <volume name>
When running the container, the volume is mounted using the -v
switch. The syntax for this switch is:
Code Block |
---|
-v <volume name>:<path to mount> |
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>
...