Versions Compared

Key

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

Initialize the django project

Create a

...

gitlab repo

Create a blank git project on a gitlab server that will hold the django project. It is helpful to have this git repo created prior to initializing the project, so that the django project can be created directly into the repo instead of having to initialize and link the git repo after the django project is created, which tends to be more difficult.

...

  • Enter the dev environment:

    Code Block
    docker exec -it dev-env-1 /bin/bash
  • Go to the /opt folder.

Now, we are going to clone the git repo using an access token. This is assuming that the project is on a gitlab server.

  • Clone the git repo. For example,

    Code Block

Modify ALLOWED_HOSTS.