django_local_library from mdn web doc. Local Library website written in Django
part 4 done
- Create a development environment for Django4.0* using virtualenvwrapper
mkvirtualenv [env-name]
workon [env-name]
deactivate
rmvirtualenv [env-name]
- Create git ignore
- Learn start and stop server using manage.py
python3 manage.py runserver
- Learn to create skeleton website using python package: django-admin
django-admin startproject [project-name]
- Understand Django framwork, applications, urlmapper
- Create application using manage.py
python3 manage.py startapp <app-name>
- Database Migration
python3 manage.py makemigrations
python3 manage.py migrate
- Model design
- Model definitions
- Fields
- Metadata
- Methods
- Methods
- Types of field
- Model relationships
- Model manipulation
- Setting up VSCode Task
- Create task for model and database migration
create admin site using project's admin.py, added data through it and customize admin view using ModelAdmin class.
- Create admin view
- Customize admin view
- inline display
- list display
- section display
- filter
Learn to create simple URL maps and views (where no data is encoded in the URL), get data from models, and create templates.
- Determine what information we want to display in our pages
- Define the URLs to use for returning those resources.
- Create a URL mapper, views, and templates to display the pages.
- url mapping
- index page
- function based view generation
- html templates
- static resources
- pagination
- listview
- template logics
- variable
- loop
- condition
- homepage
- books
- authors