Samuli Natri Follow on Youtube
Django - The Easy Way (3rd Edition)
A step-by-step guide on building Django websites
Updated September 8, 2019
$29
You will be able to download the book in
[PDF, ePub and Mobi]
formats after a successful transaction.
This book teaches you how to build a Django web application
from scratch and deploy it to a production server.
Brief contents
Table of contents
1. Python installation
Django is a Python web framework so we need to install it.
2. Setup
How to setup a virtual environment and download testing data.
3. Hello, World!
How to start a new Django project and create apps.
We use a view and a template to display a simple "Hello, World!" page.
4. Base app and static files
How to create a base app to hold common items
like header and footer markup.
5. Base app theming
How to style the base app.
6. Models
How to use models to interact with persistent data
and work with images.
7. Detail page
How to add a detail page and re-use templates.
8. Relationships
How to use many-to-many and many-to-one
relationships to categorize items.
9. Search
How to add a simple search feature.
10. Forms
How to use custom forms to create and update data.
11. Authentication and authorization
How to authenticate users and restrict access with permissions.
12. Deployment: Digitalocean
How to deploy the application to a production server using
PostgreSQL, Nginx and Gunicorn.
  • 1. Python installation
  • 2. Setup
    • 2.1 Virtual environment
    • 2.2 Assets
  • 3. Hello, World!
    • 3.1 Django project
    • 3.2 Apps
    • 3.3 Templates
    • 3.4 Views
    • 3.5 Paths
  • 4. Base app and static files
    • 4.1 Base
    • 4.2 CSS
    • 4.3 Static files
    • 4.4 Browser cache
  • 5. Base app theming
    • 5.1 Navbar and Footer
  • 6. Models
    • 6.1 Flower model
    • 6.2 Images and thumbnails
    • 6.3 Importing data
    • 6.4 Listing the flowers
    • 6.5 Styling cards
  • 7. Detail page
    • 7.1 Path
    • 7.2 View
    • 7.3 Template
    • 7.4 Slug
  • 8. Relationships
    • 8.1 Tags
    • 8.2 Tags page
    • 8.3 Card template
    • 8.4 Tags path
  • 9. Search
    • 9.1 Form
    • 9.2 View
    • 9.3 CSS
  • 10. Forms
    • 10.1 Templates
    • 10.2 Form class
    • 10.3 Paths
    • 10.4 Views
    • 10.5 Update card links
  • 11. Authentication and authorization
    • 11.1 Allauth
    • 11.2 Template files
    • 11.3 Authorization
    • 11.4 Checking permissions
    • 11.5 Access restrictions
    • 11.6 Emails
  • 12. Deployment: Digitalocean
    • 12.1 GitHub repository
    • 12.2 Git
    • 12.3 Droplet
    • 12.4 PostgreSQL
    • 12.5 Django
    • 12.6 Settings
    • 12.7 Requirements & Gunicorn
    • 12.8 Nginx