This is a Django To-do app and I am using Class-based views
.
In this project, the user can create, read, update and delete a todo.
This Django-based To-do application allows users to efficiently manage their tasks while adding a fun, rewarding twist to task completion. With user-friendly features, the app makes task management simple and engaging.
To get this repository, run the following command inside your git enabled terminal.
$ git clone https://github.com/HelloWorldIsNotDefined/django-todo-app.git
Before installing the required packages, it is recommended to create a virtual environment
.
If you don't have the virtual environment
installed:
$ python -m pip install virtualenv
Create the Virtual Environment: Run the following command, replacing env
with the name you want for your environment:
$ python -m venv env
Activate the Virtual Environment: To activate the environment, use:
-
Windows:
env\scripts\activate
-
Mac:
source env/bin/activate
Deactivate the Virtual Environment: When you're done working, you can deactivate the environment with:
deactivate
After installing and activating the virtual environment
, run the following command to install all required packages.
$ pip install -r requirements.txt
In the same directory where manage.py
is located, run this command to start the server.
$ py manage.py runserver
- Go to http://127.0.0.1:8000/ and click on the key icon to
Login
or the icon next to the key toSign up
in the navigation bar.
The default superuser is:
-
username = admin
-
password = admin
-
Once you're logged in, click on
note
icon in the left side, where you can create a new todo. http://127.0.0.1:8000/create/
- Once you created a todo, click on
Pencil
icon to edit the task.
- When you check the
Is Done
box, the task will be marked as completed, and you will earn 100 points as a reward.
Thank you for taking the time to explore this simple Django todo project. I hope you find it helpful and informative as you learn more about Django and web development. If you have any questions, feel free to reach out. Happy coding, and goodbye!