-
Setup a virtual environment
python3 -m venv ~/.virtualenvs/thinkspace source ~/.virtualenvs/thinkspace/bin/activate
-
Download project and install dependencies
git clone https://github.com/yalethinkspace/thinkspace_django cd thinkspace_django pip3 install -r requirements.txt
-
Copy
.env.example
to.env
and edit credentialscp .env.example .env nano .env
Replace
SECRET_KEY
with any sufficiently complex string. You can generate one in Python3 using:import secrets secrets.token_urlsafe(24)
EMAIL_HOST_USER
andEMAIL_HOST_PASSWORD
can be obtained from the project owner (or you may provide credentials to your own SMTP server. This will also require modifyingsettings.py
). -
Start development server for testing
django r
OR
python manage.py runserver
Points of note:
-
Pull requests trigger Heroku review apps to be built. Find out more here: https://devcenter.heroku.com/articles/github-integration-review-apps
You may use these review apps to debug code behavior. You may need to be added as a collaborator on the Heroku deploy by the project owner in order to fully explore this functionality.
-
.env
credentials are already present on Heroku. For instance, email credentials are pre-configured.