Django - The Easy Way (3rd Edition)
Django - The Easy Way (3rd Edition)
$19.00
Minimum price
$19.00
Suggested price
Django - The Easy Way (3rd Edition)

This book is 100% complete

Completed on 2020-01-02

About the Book

[Updated 2020.01.02] Works with Django 2 and 3!

Learn how to build and deploy web applications with Python and Django.

Table of Contents

  1. Creating A Django Project
  2. Creating Apps
  3. Templates
  4. Static Files (CSS)
  5. Models
  6. ForeignKey And Dates
  7. Forms With ModelForm
  8. Authentication
  9. Authorization
  10. Tagging
  11. Pagination
  12. Images
  13. Context processors: Latest posts
  14. Styling With Sass
  15. Deployment: Digitalocean (PostgeSQL, Nginx, Gunicorn)
  16. Deployment: Heroku
  17. Amazon S3 Storage And CloudFront
  18. Deployment: PythonAnywhere
  • Share this book

About the Author

Samuli Natri
Samuli Natri

Samuli Natri is a software developer. He studied Computer Science at Helsinki University of Technology.

Table of Contents

  • Introduction
    • About the author
    • About Python
    • About Django
    • Who is this book for
    • What this book covers
    • GitHub repository and feedback
  • Installing Python
  • 1 Creating A Django Project
    • 1.1 Creating virtual environments
    • 1.2 Installing Django
    • 1.3 Creating a new Django project
    • 1.4 Summary
  • 2 Creating Apps
    • 2.1 Adding features with apps
    • 2.2 Configuring URLs
    • 2.3 Creating views
    • 2.4 Creating templates
    • 2.5 Summary
  • 3 Templates
    • 3.1 Templates
    • 3.2 Template inheritance
    • 3.3 Summary
  • 4 Static Files (CSS)
    • 4.1 Adding CSS stylesheets
    • 4.2 Configuration
    • 4.3 Template
    • 4.4 Highlighting active links
    • 4.5 Summary
  • 5 Models
    • 5.1 Creating models
    • 5.2 Listing blog posts
    • 5.3 Creating a blog detail page
    • 5.4 Summary
  • 6 ForeignKey And Dates
    • 6.1 Summary
  • 7 Forms With ModelForm
    • 7.1 Creating posts
    • 7.2 Editing posts
    • 7.3 Deleting posts
    • 7.4 Summary
  • 8 Authentication
    • 8.1 Implementing authentication
    • 8.2 Overriding templates
    • 8.3 Summary
  • 9 Authorization
    • 9.1 Assigning permissions with groups
    • 9.2 Checking permissions in templates
    • 9.3 Restricting access to views
    • 9.4 Summary
  • 10 Tagging
    • 10.1 Tagging blog posts
    • 10.2 Filtering blog posts by a tag
    • 10.3 Summary
  • 11 Pagination
    • 11.1 Paginator class
    • 11.2 Including templates
    • 11.3 Summary
  • 12 Images
    • 12.1 Uploading images
    • 12.2 Processing images
    • 12.3 Summary
  • 13 Context processors: Latest posts
    • 13.1 Context processors
    • 13.2 Summary
  • 14 Styling With Sass
    • 14.1 node-sass
    • 14.2 browser-sync
    • 14.3 Normalize
    • 14.4 Google Fonts
    • 14.5 Header
    • 14.6 Layout
    • 14.7 Post
    • 14.8 Latest posts block
    • 14.9 Forms
    • 14.10 Pagination
    • 14.11 Summary
  • 15 Deployment: Digitalocean
    • 15.1 Local vs production configuration
    • 15.2 SSH keys
    • 15.3 Git repository
    • 15.4 Creating a droplet
    • 15.5 Configuring the droplet
    • 15.6 PostgreSQL
    • 15.7 Django application and production settings
    • 15.8 Staticfiles
    • 15.9 Gunicorn
    • 15.10 Nginx
    • 15.11 Updating the production site
    • 15.12 Summary
  • 16 Deployment: Heroku
    • 16.1 Creating a new app
    • 16.2 Configuring Heroku
    • 16.3 Settings
    • 16.4 Updating the production site
    • 16.5 Summary
  • 17 Amazon S3 Storage And CloudFront
    • 17.1 Creating an Amazon S3 bucket
    • 17.2 Setting up permissions
    • 17.3 Configuration
    • 17.4 Installing packages
    • 17.5 CloudFront
    • 17.6 Summary
  • 18 Deployment: PythonAnywhere
    • 18.1 Local vs production configuration
    • 18.2 SSH keys
    • 18.3 Git repository
    • 18.4 Adding a web app
    • 18.5 Updating the production site
    • 18.6 Summary
  • 19 Attribution

Authors have earned$8,539,275writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub