A Beginner's Guide To Django
1. Python Installation & Test Project
We start by installing Python and creating a simple test project.
2. Virtual Environment
Project dependencies (packages the project depends on) are isolated using a virtual environment.
Dependencies are installed using requirement files. Each environment gets its own file.
4. Pizzeria Project
Create a new project directory structure and learn about the default configuration files.
Each environment gets its own settings file that configures the project.
6. Environment Variables
Sensitive data (like passwords) are stored as environment variables.
PostgreSQL database is used in development and production environments.
8. Pages App
Use apps to add new features to the project (home and about page).
9. Bootstrap & Template Inheritance
Add a responsive theme using Bootstrap frontend framework.
10. Pizzas App
Pizzas app allows users to create, edit, display and delete pizzas.
11. Pizza Model
Pizza model describes how each pizza is stored in the database.
12. Toppings ManyToMany Relationship
Toppings demonstrate how to use ManyToMany relationships.
Each pizza can have an image. Smaller thumbnails are generated using the django-imagekit library.
Django's generic class-based editing views makes it easy to create custom forms.
15. Detail Page
Each pizza have its own detail page. SlugField is used to create user-friendly paths (pizzas/quattro-stagioni/).
16. Search With Pagination
Search pizzas with keywords and add a re-usable pagination.
Add an authentication system that allows users to sign-in and log-in to the site.
Restrict access to parts of the site using groups and permissions.
20. Messages & Context Processors
Show temporary messages and display dynamic data on every page.
21. Amazon S3 Storage & CloudFront
22. Deployment To Heroku
Deploy the website to Heroku cloud application platform.
23. Extras: Function-based Views (Forms with ModelForm)
Allow visitors to send feedback (and provide a screenshot).