Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

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.

...

  • Create new branch initialize. The project access token is not permitted to push to main branch.

    Code Block
    git branch initialize
    git checkout initialize
    git push --set-upstream origin initialize
  • Commit the initial files created by django for the project.

    Code Block
    git add .
    git commit -m "Initialize django project."
    git push
  • Merge the initialize branch into main branch.

Build Run-time Environment

Create Dockerfile

Add gitlab deploy key.

Modify ALLOWED_HOSTS.