...
Go into the project folder that was created when the repo was cloned.
Start the project. Be sure to enter the
.
at the end of the command line in order to create the project in the current folder. Otherwise, django will create a subfolder with the project name and place it one level down.Code Block django-admin startproject <project name> .
Push first commit
Create new branch
initialize
. The project access token is not permitted to push tomain
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
Modify ALLOWED_HOSTS.