Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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>

...