Skip to content

A beginner-friendly Django project to build a fully functional To-Do app. This repository includes a step-by-step implementation of models, views, templates, and CRUD operations, with a clean and user-friendly UI.

Notifications You must be signed in to change notification settings

bigprogrammers/django-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django To-Do App

📋 Overview

This repository contains the source code for a simple To-Do application built with Django. The project demonstrates the use of Django's models, views, templates, and forms to perform CRUD (Create, Read, Update, Delete) operations. It's an ideal beginner-friendly project to learn and practice Django fundamentals.


Video

🚀 Features

  • Add new tasks
  • View all tasks in a list
  • Mark tasks as complete or incomplete
  • Edit existing tasks
  • Delete tasks
  • User-friendly interface with Bootstrap

🛠️ Tech Stack

  • Backend: Django (Python)
  • Database: SQLite (default Django database)
  • Frontend: HTML, CSS, and Bootstrap

📂 Project Structure

django-todo-app/
│
├── todo/
│   ├── migrations/         # Database migrations
│   ├── templates/          # HTML templates for the app
│   │   ├── base.html       # Base template for all pages
│   │   ├── index.html      # Home page template
│   │   └── form.html       # Template for adding/editing tasks
│   ├── static/             # Static files (CSS, images, etc.)
│   ├── models.py           # Task model definition
│   ├── views.py            # Logic for handling requests and responses
│   ├── urls.py             # URL routing for the app
│   └── admin.py            # Django admin customization
│
├── manage.py               # Django project management script
├── db.sqlite3              # SQLite database file
├── requirements.txt        # Python dependencies
└── README.md               # Project documentation

⚙️ Setup and Installation

Prerequisites

  • Python 3.x installed
  • pip (Python package manager)

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/django-todo-app.git
    cd django-todo-app
  2. Create a virtual environment:

    python -m venv env
    source env/bin/activate  # On Windows: env\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Run the server:

    python manage.py runserver
  6. Open your browser and navigate to:

    http://127.0.0.1:8000
    

🖼️ Screenshots

Home Page

Home Page

Register

Add Task

Login

Add Task


🤝 Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a feature branch:
    git checkout -b feature-name
  3. Commit your changes:
    git commit -m "Add your message here"
  4. Push to the branch:
    git push origin feature-name
  5. Submit a pull request

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


⭐ Acknowledgements


🌟 If you found this helpful, please give this repository a star!


Let me know if there’s anything you’d like to add or modify!

About

A beginner-friendly Django project to build a fully functional To-Do app. This repository includes a step-by-step implementation of models, views, templates, and CRUD operations, with a clean and user-friendly UI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published