Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 1.83 KB

README.md

File metadata and controls

74 lines (54 loc) · 1.83 KB

Django Task Reminder

This is a simple application for managing to-do lists.

Users would be allowed to:

  • Add, Modify, Finish, and Remove tasks.
  • Assign tasks to other users.
  • Set Reminders for their tasks.

For notifications, this project uses DWR-910 4G LTE USB Router to send SMS to users.

How to run

  1. Make sure python3 and pip are installed in your system.
  2. clone the project and make the development environment ready:
git clone https://github.com/arianshnsz/Django-Task-Reminder.git
python -m venv .venv # Create a virtual environment called .venv
source .venv/bin/activate # activate the virtual environment
pip install -r requirements.txt # install the required packages
3. Generate the Django Secrete key (click to show the steps):
  • Access the Python Interactive Shell:
django-admin shell
  • Import the get_random_secret_key() function from django.core.management.utils:
from django.core.management.utils import get_random_secret_key
  • Generate the Secrete key using get_random_secret_key() function:
get_random_secret_key()
  • In the existing directory, create a file name .env and paste the following line inside it:
SECRET_KEY = "... paste your generated secret key ..."
  1. Create database tables:
python manage.py migrate
  1. Run the project and visit the following website.
python manage.py runserver
  1. (Optional) Connect to DWR-910 device and run the sms script for sending sms to users:
python manage.py runscript task_notification

This will run scripts/task_notification.py.

TODO

  • add SIM800 module
  • accept requests before assigning tasks
  • international phone number check