Book Image

Django 4 for the Impatient

By : Greg Lim, Daniel Correa
Book Image

Django 4 for the Impatient

By: Greg Lim, Daniel Correa

Overview of this book

Learning Django can be a tricky and time-consuming activity. There are hundreds of tutorials, loads of documentation, and many explanations that are hard to digest. However, this book enables you to use and learn Django in just a couple of days. In this book, you’ll go on a fun, hands-on, and pragmatic journey to learn Django full stack development. You'll start building your first Django app within minutes. You'll be provided with short explanations and a practical approach that cover some of the most important Django features, such as Django Apps’ structure, URLs, views, templates, models, CSS inclusion, image storage, authentication and authorization, Django admin panel, and many more. You'll also use Django to develop a movies review app and deploy it to the internet. By the end of this book, you'll be able to build and deploy your own Django web applications.
Table of Contents (14 chapters)

What this book covers

Chapter 1, Installing Python and Django, introduces Django and explains how to install Python, pip, and Django.

Chapter 2, Understanding the Project Structure and Creating Our First App, discusses the Django project structure and shows how to create a movie reviews application with Django.

Chapter 3, Managing Django URLs, explains how to create custom pages and how Django URLs work.

Chapter 4, Generating HTML Pages with Templates, takes a look at Django templates and how to separate HTML code from Django views.

Chapter 5, Working with Models, discusses the fundamentals of Django models and how to work with databases.

Chapter 6, Displaying Objects from Admin, shows how to collect and display information stored in a database.

Chapter 7, Understanding the Database, shows how to inspect the database information and how to switch between database engines.

Chapter 8, Extending Base Templates, explores how Django base templates can be used to reduce duplicated code and improve the look and feel of the movie reviews application.

Chapter 9, Creating a Movie Detail Page, enhances the movie reviews application with a feature to navigate to each movie's detail page.

Chapter 10, Implementing User Signup and Login, discusses the Django authentication system and enhances the movie reviews application with some features to allow users to sign up and log in.

Chapter 11, Letting Users Create, Read, Update, and Delete Movie Reviews, enhances the movie reviews application with standard CRUD operations on reviews for movies.

Chapter 12, Deploying the Application to the Cloud, shows how to deploy Django applications on the cloud.