Tracks service hours and opportunities for dorm scholars of Ateneo de Manila University
- Create a virtual environment (open cmd in dorm-service-tracker and do
python3 -m venv venv
) - Activate virtual environment (
venv\Scripts\activate
) - Install packages into your virtual environment (
pip install -r requirements.txt
) - Place
.env
file in yourdorm-service-tracker
folder. Open this file and add two new lines:
- DB_user = '
Enter your MySQL username here
' - DB_password = '
Enter your MySQL password here
'
- Run
pre-commit install
to use packages to clean up code
- Activate virtual environment (
venv\Scripts\activate
) - Run server (
python manage.py runserver
) - Migrate your changes (
python manage.py makemigrations
>python manage.py migrate
) - When running
git commit
, pre-commit hooks sometimes fails. This is not an error; pre-commit hooks are just updating your code. Simply rungit add *
andgit commit
again after it fails.
- Django Admin: http://127.0.0.1:8000/admin/