- Full authentication support using django-allauth
- Dynamically create, update and delete task which are already done
- Separate sections for unfinished and finished tasks
- Search bar to filter the tasks
- Responsive design : smartphone-friendly
- Django for backend
- HTML, CSS and vanilla JS for the frontend
-
Clone the repository
git clone https://github.com/Ameenafz248/todo.git cd todo
-
Create and activate virtual environment
python3 -m venv .venv source .venv/bin/activate
-
Install the dependencies
python3 -m pip install -r requirements.txt
-
Get a secret key
python3 -c "import secrets; print(secrets.token_urlsafe())"
-
Setup environmental variables
vim .env
-
Put this code inside .env:
DEBUG=True SECRET_KEY=abcdefghijklmopqrstuvwxyz //the secret_key you created using secrets library DJANGO_SECURE_SSL_REDIRECT=False DJANGO_SECURE_HSTS_SECONDS=2592000 DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=False DJANGO_SECURE_HSTS_PRELOAD=False DJANGO_SESSION_COOKIE_SECURE=False DJANGO_CSRF_COOKIE_SECURE=False
-
Make migrations
python3 manage.py migrate
-
Run the program
python3 manage.py runserver