Django - The Easy Way
Django - The Easy Way
$29.00
Minimum
$29.00
Suggested
Django - The Easy Way

This book is 100% complete

Completed on 2018-08-16

About the Book

Django is a very powerful Python Web Framework. You can use it to build everything from simple websites to big high traffic systems.

But starting with Django can be a daunting experience for beginners. The purpose of this book is to guide you through the essential concepts with pragmatic step-by-step examples. You will learn how to build a complete website and deploy it in a real world production environment.

The focus is on Django basic concepts so covering other technologies is kept at minimum. It’s helpful to know some Python, HTML, and CSS but you don’t need to have any previous experience with those or web development in general to be able to follow the book.

You will learn things like:

  • How to setup PyCharm for Django (you can use any editor).
  • How to organize the project and add a base app to hold common assets.
  • How template inheritance works.
  • How to reuse common template items like grids and pagination.
  • How to work with models, views and urls.
  • How to use GIT and Bitbucket to version control and deploy your code.
  • How to style all features with SASS (or CSS) and Gulp.
  • How to create a responsive design.
  • How to generate thumbnails.
  • How to use relationships (ManyToMany, OneToMany and Foreignkey) in practical contexts.
  • How to create custom forms to add and edit content.
  • How to create and extend class based views.
  • How to create a custom search.
  • How to create an authentication system (sign-in, login, logout and reset password).
  • How to restrict access with groups, permissions and decorators.
  • How to add a user profile page.
  • How to add inline fields to the admin area.
  • How to do test driven development (TDD).
  • How to translate the website.
  • How to create custom error pages.
  • How to setup a production environment with Digitalocean, PostgreSQL, Nginx and Gunicorn.
  • How to use fixtures to apply initial data.
  • How to setup domain, HTTPS, Email and Caching with Memcached.
  • ... and a lot more.

Checkout more info and screenshots: https://djangotheeasyway.com/

  • Share this book

Table of Contents

  • 1. Foreword
    • About This Book
    • Code Blocks
    • Editors, Code Hosting & Operating System
    • About The Author
  • 2. New Project
  • 3. Base App, PyCharm And Homepage
    • PyCharm For Django
    • Base App
    • Base Template
    • Home URL
    • Home View
    • Home Template & Inheritance
  • 4. Version Control With GIT (Optional)
    • .gitignore file
    • First Commit
    • Bitbucket & SSH Key
    • New Repository
    • Push
  • 5. CSS Styling, Gulp, SASS
    • CSS
    • Vanilla CSS
    • Gulp
    • SASS
  • 6. Header And Footer
    • Markup
    • Styling
  • 7. Breakpoints And Main Menu
    • Mixins
    • Responsive Layout
    • Main Menu
  • 8. JavaScript And Dropdown Menu
    • Dropdown Markup
    • Dropdown Styling
    • Dropdown JavaScript
  • 9. Blog Posts
    • Post Model
    • Makemigrations & Migrate
    • Models & Database
    • Admin
    • Post View
    • Post Urls
    • Post Template
    • H1 & Title Tags
    • Post Styling
  • 10. Responsive And Reusable Grid
    • Grid Template
    • Grid Styling
    • Hide Main Container
  • 11. Reusable Pagination
    • Paginator Class
    • Simple Example
    • More Complex Example
    • Pagination Styling
  • 12. Thumbnails
    • Imagekit Package
    • Thumbnail Generation
  • 13. Tags And Relationships
    • Tag Model & ManyToManyField
    • Post Page Tags
    • Tag View
    • Tag Grid
    • Tag Styling
  • 14. Custom Post Form
    • ModelForm
    • Post Form Template
    • Post Form Urls
    • Forms.py
    • Post Form Views
    • Form Styling
    • Add Post Link
  • 15. Custom Search
    • Search App
    • Search Templates
    • Search View
    • Search Urls
    • Search Styling
  • 16. Authentication
    • Account Urls
    • Account Templates
    • Register & Class Based Views
    • Login & Logout Links
    • Styling
  • 17. Profile Model And Displayname
    • Profile Model & OneToOneField
    • Displayname & Admin Inline Fields
    • Author Field & ForeignKey
    • Update Custom Form
  • 18. Profile Page
    • Profile View
    • Profile Template
    • Profile Urls
    • Profile Styling
    • Profile Links
    • Login & Logout Urls
  • 19. Permissions And Decorators
    • Editor Group
    • Decorators
    • Edit Post Link
  • 20. Extend User Forms
    • CustomUserCreationForm
    • CustomUserChangeForm
    • Profile Page Links
  • 21. Test Driven Development
    • Functional Tests VS Unit Tests
    • Selenium & Geckodriver
    • Functional Tests
    • Unit Tests
    • Feedback Items
    • Testing Models
    • Testing Views
    • Testing Forms
  • 22. Translation
    • i18n_patterns
    • About Page
    • Makemessages & Compilemessages
    • Language Switcher
  • 23. Custom Error Pages
    • Settings
    • Template Files
  • 24. Deployment
    • Digitalocean Droplet
    • Unix User
    • Freeze Requirements
    • Clone To Production
    • Virtual Environment
    • Settings File
    • Test With Runserver & Links
    • PostgreSQL
    • Static & Media Files
    • Nginx
    • Setup Gunicorn
    • Monitor Gunicorn
    • Password Protection With .htpasswd
    • Deploy Changes
    • Settings For Production
  • 25. Initial Data With Fixtures
    • Dump Data
    • Load Data
  • 26. Domain
    • Namecheap
    • Nginx
  • 27. HTTPS And Nginx
    • Let’s Encrypt
    • Firewall
  • 28. Send Email
    • Setup Mailbox
    • Email Logging In Localhost
  • 29. Caching
    • Installation
    • Configuration
  • 30. Afterword
    • Congratulations!
    • Where To Go Next?

About the Author

Samuli Natri
Samuli Natri

Samuli Natri has been doing software development since the 90's. He attended Helsinki University Of Technology (Computer Science) and Helsinki University (Social Sciences). He shares free tutorials at https://www.wdtutorials.com.

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...

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! 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