Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Outline

Steps:

Installation

pip install Django
django-admin startproject todoapp

Start

python manage.py migrate
python manage.py runserver
python manage.py startapp todolist
  • add 'todolist' to INSTALLED_APPS

Add views

  • implement todolist.views.py and create todolist.urls.py
  • add urls to todoapp.urls.py

Add templates

  • add templates folder and file
  • add "templates" to DIR in settings.py
  • modify view: return render...

Add models

  • implement todolist.models.py

Put together

manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
  • Adding models to the administration site:
    • todolist.admin.py: admin.site.register(Todo)
  • login to admin

add template

  • add {% csrf_token %} to template

CRUD

  • implement views
Morty Proxy This is a proxified and sanitized view of the page, visit original site.