University of Waterloo - Humans vs Zombies
The latest UWaterloo HvZ website. Built on Django.
To start a local server, do the following:
git clone email@example.com:uwhumansvszombies/uwhvz.git pipenv install pipenv shell python manage.py migrate python manage.py runserver
To make a migration after changing models, etc., use
python manage.py makemigrations app.
The site is currently hosted on: Computer Science Club (CSC) servers.
We use a detached screen to run Gunicorn, which lets us run the site. Important commands include:
screen -ls: should list exactly one detached screen where Gunicorn is running the site
screen -r: resumes the Gunicorn screen
If no screen is found, do the following:
source venv/bin/activate gunicorn --bind 0.0.0.0:53271 uwhvz.wsgi
Exit out of the screen session (but keep it running) with
Ctrl+A+D, and then check if the website is running. If so, you're all set.
If frontend-related changes are not refreshed on the site originally upon
python manage.py collectstatic, and restart the server. If that doesn't work, do the following:
rm -rf /static/ python manage.py collectstatic python manage.py compress --engine jinja2
The last line is for optimizing the size of our assets. Failing to run the last line will cause a 500 error.
- Generate a bunch of fake data for testing purposes:
python manage.py seed_data