Versions Compared

Key

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

...

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.

  • To create the Docker volume, on the host:

    Code Block
    docker volume create <volume name>

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>

...