...
Create the access token.
Go to the gitlab repo web page.
Under Settings (left sidebar), select Access tokens.
In the Token name field, enter
initialize project
.For the Expiration date field, the default value should be sufficient, as this git clone won’t be needed after the project is initialized.
For the Select a role dropdown, select Developer. This is to permit the clone to write to the repo.
It should be unnecessary to select any of the scopes.
Click the Create project access token button.
A green field will appear with the project access token hidden. Click the Copy project access token button, next to the eye (reveal) button to copy the token to the clipboard.
...
Clone the git repo.
Code Block git clone https://<project access token>@<gitlab repo address>
For example,
Code Block git clone https://glpat-xYzCB3sMjfFYz5Q6hyH2@git.uwaterloo.ca/d24lau/ece-li-scheduling.git
Modify ALLOWED_HOSTS.