Giter Site home page Giter Site logo

kkumuda / todo_list_in_django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acmpesuecc/todo_list_in_django

0.0 0.0 0.0 11 KB

A simple priority Todo List app in which users can add and delete Todo tasks.

License: MIT License

Python 63.14% HTML 36.86%

todo_list_in_django's Introduction

Todo List In Django

Build a Priority todo list in Django

In this app, you get to contribute to and help building a simple web app in which you can add, delete todos to a database. We also fetch and display the todos according to their assigned priority.

The Database used in this app

Consists of a single Todo table

With attributes id(Primary Key), title, content, created_at(timestamp) and priority

id title content created_at priority
1 Todo 1 Todo 1 Content Date time 1
2 Todo 2 Todo 2 Content Date time 2
3 Todo 3 Todo 3 Content Date time 3
4 Todo 4 Todo 4 Content Date time 1

Functionalities

  • GET - fetches all todos present in the database and displays them according to their priority field.
  • ADD - creates a new todo and inserts it in the database.
  • DELETE - Removes a specific todo (given id) from the database.

Steps to replicate this project on your computer

  1. Create a virtual environment - python3 -m venv /path/to/new/virtual/environment

  2. Activate it

    • In Terminal - source <venv>/bin/activate
    • In cmd.exe - <venv>\Scripts\activate.bat
  3. In case of difficulties, read more about Virtual environments here.

  4. To Install sqlite3, please go through this link.

  5. Install all the required modules for the project via pip with the command.

     `pip3 install -r requirements.txt`
    
  6. This installs Django and other required packages.

  7. To start the project and run the server - cd Priority_Todo_List and then run

     `python3 manage.py runserver`
    
  8. Similarly, to create a super user for the DB

     `python3 manage.py createsuperuser`
    
  9. Make migrations

    `python3 manage.py makemigrations`
    
  10. Migrate changes to the Database

    `python3 manage.py migrate`
    

NOTE - The Commands above may not work as there are issues which you can solve by sending PRs to this repository!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.