These are some instructions for setting up the development environment.
-
Clone the repository
-
Create and activate virtual environment.
.venv is the environment name. This can be replaced with whatever you like.
python -m venv .venv
# for Windows
.venv/Scripts/activate.bat
# for Git Bash
source .venv/Scripts/activate
- Install all the required packages
pip install -r requirements.txt
-
Setup local settings
Copy thelocal_settings.default.pyfile in themysitefolder and rename itlocal_settings.py. This should automatically be removed from version control in the.gitignore. Then update thelocal_settings.pyfile with the Django secret key (this will be shared with you over a secure channel). -
Make database migrations
python manage.py makemigrations
python manage.py migrate
- Setup superuser account
python manage.py createsuperuser
You'll also want to setup a superuser on the postgres database. If you haven't already installed Heroku CLI, do that now.
heroku run python manage.py createsuperuser --app group-project-a22
Setup should now be complete. You can now host the repository locally with
python manage.py runserver