Use a virtualenv in development to prevent conflicts with the dependencies (more info about virtualenv).
You can install virtualenv via pip:
pip install virtualenv
Create an env ignoring all site-packages:
virtualenv env --no-site-packages
Activate the env:
- Bash on Linux:
source env/bin/activate
- Bash on Windows:
source env/Scripts/activate
- CMD/PowerShell:
.\env\Scripts\activate
Intall server dependencies using pip:
pip install -r requirements.txt
For Python linting and other development tools, install devel requirements (optional):
pip install -r requirements-devel.txt
Change to django_score
directory and make/apply migrations:
python manage.py makemigrations
python manage.py migrate
Execute the runserver Django command:
- Bash on Linux or CMD/PowerShell:
python manage.py runserver
- Bash on Windows (for pty support):
winpty python manage.py runserver
TODO