Art society was started in the summer of 2017 and hosted its first event in the monsoon 2017.
- No dev PRs against
master
branch. All dev pull requests should be raised againstdevelop
or custom branches only. design
branch contains all the design discussions only.- Every PR needs at least 1 peer approval before it can be merged.
- Use meaningful commit messages
- Clone the repo:
git clone <url of forked repo>
- Set
upstream
(new remote) to base repo so that you can keep your fork updated:
git remote add upstream https://github.com/OSDG-IIITH/art-club-website
- Everytime you want to pull changes from base repo:
git pull upstream <branch-name>
- TODO
- TODO
- TODO
cd src
source venv/bin/activate
pip3 freeze > requirements
python3 manage.py runserver
Every time there is a change in the models, they need to be reflected to the database by running migrations.
python manage.py makemigrations backend
python manage.py migrate
Uncomment/Comment (respectively) the following lines in django_react/settings.py
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
)
}
Make sure you're in the correct directory:
cd src
Running Tests:
coverage run --source='.' manage.py test
and generate the report:
coverage html
You'll see exactly what to test. If you prefer seeing the report on the command line run:
coverage report