- Install requirements.txt.
pip install -r requirements.txt
- Navigate to the internal LeagueSports folder (where settings.py is located, not the root folder) and create a secret_key.py file. This file should contain a SECRET_KEY variable set to a random string
- Change the database NAME and STATICFILE_DIRS strings in settings.py to match your computer's path
- Then run
git status
If git detects that you've changed settings.py run the following commandgit update-index --assume-unchanged path/to/LeagueSports/settings.py
LeagueSports contains two servers, one for serving the website (django) and one for serving the realtime draft (tornado). To run the servers:
- Django:
python manage.py runserver
- Drafter:
python draftserver.py