allentv / todo-app-django

A ToDo app created in Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todo-app-django

Summary

A ToDo app created in Django that runs on your machine. You can add or delete todos

Code Organization

The todos app contains the code for managing updates to todo items. The templates and styles for the webapp are available in this folder.

Setup

This project requires pipenv to run. After you install it globally, run the following commands.

pipenv install --dev
pipenv shell

This will switch over to the virtualenv created by pipenv. You can verify this by checking the update to the shell prompt which will have (todo-app-django) at the beginning.

Next step is to create the local database. For that you will have to run the database migrations. Execute the following commands to create the required tables in SQLite database.

cd todoapp
./manage.py migrate

You should see something like the below: Database migrations

Create an admin user for accessing the administration dashboard. Use the default settings with user name and password both set to admin

cd todoapp
./manage.py createsuperuser

The steps are shown below: Creating admin user

The application setup is now complete. You can start the application by running ./manage.py runserver. This will start a development web server at http://localhost:8000/ which you can access via a web browser.

Webapp

The admin dashboard can be accessed at http://localhost:8000/admin/. Enter admin for both user name and password (created before)

Admin Login

Reference

Below YouTube videos were very helpful:

About

A ToDo app created in Django

License:MIT License


Languages

Language:Python 82.4%Language:HTML 17.2%Language:CSS 0.4%