Simple app to track church members
- Python 3.9
Create virtualenv:
python3.9 -m venv venv
Activate virtualenv:
source venv/bin/activate
pip install -r requirements.txt
python manage.py shell_plus
Generate migrations when the Models are changed:
python manage.py makemigrations
Apply database migrations:
python manage.py migrate
Run the following command to import:
python manage.py import_members path/to/csv/file
The CSV needs to have the following columns:
id, name, phone, mobile_phone, address, baptize_date, birth_date, note
python manage.py createsuperuser
python manage.py runserver
- Create virtual environment
- Apply migrations
- Import church members from CSV (optional)
- Create superuser
- Access admin panel - http://localhost:8000/admin
-
Open the interactive shell
python manage.py shell_plus
-
Call the following function:
from church_list.members.actions import print_birthdays print_birthdays() print_birthdays(2020)