Skip to content

django-to-do is simple to do web app created using Django.

License

Notifications You must be signed in to change notification settings

adhirajcs/django-to-do

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-to-do

django-to-do is a simple web application created using Django. It served me as a learning project for understanding and implementing Django functionalities.

Cloud Hosting

The application is hosted on PythonAnywhere. You can access it here: adhiraj.pythonanywhere.com.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/adhirajcs/django-to-do.git
    cd django-to-do
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS and Linux:
      source venv/bin/activate
  4. Install the required dependencies:

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

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver
  7. Open your web browser and go to https://127.0.0.1:8000/ to see the application in action.

Usage

  • 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.

Folder Structure

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

Features

  • User authentication (Register, Login, Logout)
  • Add, edit, complete/uncomplete, and delete to-do items
  • Responsive design using Bootstrap

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.