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

This book is 100% complete

Completed on 2019-09-08

About the Book

Main topics covered:

  • Python installation
  • Virtual environments
  • Static files
  • Models
  • Views
  • Templates
  • URL’s
  • Relationships
  • Search
  • Custom forms
  • Authentication
  • Authorization
  • Deployment to Digitalocean
  • PostgreSQL
  • Nginx
  • Gunicorn
  • Share this book

About the Author

Samuli Natri
Samuli Natri

Samuli Natri is a programmer who is familiar with several programming languages and technologies including C/C++, OpenGL, Django, Drupal, Python, JavaScript, HTML and CSS. He attended Helsinki University of Technology (Computer Science) and Helsinki University (Social Sciences).

Table of Contents

  • 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
  • 13 Attribution

Authors have earned$8,090,162writing, 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. Free App. 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), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). 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