This repository and further development has been moved to gitlab.smint.no
Backend for RadioRevolt.no
Create a virtual environment for Python:
pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
sudo apt-get install libpq-dev python3-dev zlib1g-dev libjpeg-dev
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic
python manage.py loaddata data_models/fixtures/beta_fixtures.json
python manage.py runserver
We use pytest
, isort
, yapf
and flake8
to test and lint the project.
Run the commands before commiting:
flake8 api_graphql app data_models
yapf -pir api_graphql app data_models -e '**/migrations' -e '**/snapshots'
isort -rc api_graphql app data_models
pytest
Can be found here.
Is described here.
Can be found here