django-to-do is a simple web application created using Django. It served me as a learning project for understanding and implementing Django functionalities.
The application is hosted on PythonAnywhere. You can access it here: adhiraj.pythonanywhere.com.
-
Clone the repository:
git clone https://github.com/adhirajcs/django-to-do.git cd django-to-do
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open your web browser and go to
http://127.0.0.1:8000/
to see the application in action.
- Home Page: View and manage your to-do items.
- Add To-Do: Use the form to add a new to-do item.
- Edit To-Do: Edit an existing to-do item.
- Complete/Uncomplete To-Do: Mark a to-do item as completed or uncompleted.
- Delete To-Do: Remove a to-do item.
The project directory structure is as follows:
django-to-do/
│
├── myapp/
│ ├── migrations/
│ ├── init.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
│
├── templates/
│ ├── base.html
│ ├── edit.html
│ ├── index.html
│ ├── login.html
│ ├── register.html
│ └── ...
│
├── todo/
│ ├── init.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
│
├── venv/
│ └── ...
│
├── win_venv/
│ └── ...
│
├── .gitignore
├── db.sqlite3
├── manage.py
├── README.md
└── requirements.txt
- User authentication (Register, Login, Logout)
- Add, edit, complete/uncomplete, and delete to-do items
- Responsive design using Bootstrap
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.