We use flake8==6.1.0 as a linter and black==23.11.0 as a code formatter
Install
pip install flake8==6.1.0 black==23.11.0Run black
black .Run flake8
flake8 .Make sure that you have +python3.8 installed.
pip install -r ./requirements.txtFor sure you will get some errors after running above step fix those and then continue.
python manage.py makemigrations
python manage.py makemigrations attendance
python manage.py migrate
python manage.py runserverAfter that you have to create superuser and create some dummy data. Dummy data can be created using django Fixtures if you are interested raise a PR for that.
docker build -t attendance-backend .docker run --network=host attendance-backendNow you can access the server at http://localhost:8000
if anything is missed visit docker-cheetsheet
python manage.py testpython manage.py test attendance.test.models.test_classattendancewithgeolocationTest