Django 5 for the Impatient

by Daniel Correa, Greg Lim

Programming

Book Details

Book Title

Django 5 for the Impatient

Author

Daniel Correa, Greg Lim

Publisher

Packt Publishing Pvt Ltd

Publication Date

2024

ISBN

9781835461556

Number of Pages

239

Language

English

Format

PDF

File Size

4.2MB

Subject

Programming: Programming Languages

Table of Contents

  • Django 5 for the Impatient
  • Contributors
  • About the authors
  • About the reviewers
  • Preface
  • Chapter 1: Installing Python and Django, and Introducing the Movies Store Application
  • Technical requirements
  • Introducing and installing Python
  • Introducing and installing Django
  • Creating and running a Django project
  • Understanding the Movies Store application
  • Introducing the Django MVT architecture
  • Summary
  • Chapter 2: Understanding the Project Structure and Creating Our First App
  • Technical requirements
  • Understanding the project structure
  • Creating our first app
  • Creating a home page
  • Creating an about page
  • Summary
  • Chapter 3: Designing a Base Template
  • Technical requirements
  • Creating a base template with Bootstrap
  • Updating the home page to use the base template
  • Updating the About page to use the base template
  • Adding a header section
  • Adding a footer section
  • Summary
  • Chapter 4: Creating a Movies App with Dummy Data
  • Technical requirements
  • Creating the movies app
  • Listing movies with dummy data
  • Listing individual movies
  • Adding a link in the base template
  • Summary
  • Chapter 5: Working with Models
  • Technical requirements
  • Creating our first model
  • Installing Pillow
  • Managing migrations
  • Accessing the Django admin interface
  • Configuring image upload
  • Serving the stored images
  • Adding a movie model to the admin panel
  • Summary
  • Chapter 6: Collecting and Displaying Data from the Database
  • Technical requirements
  • Removing the movies’ dummy data
  • Updating the movie listings page
  • Updating the listing of an individual movie page
  • Implementing a search movie functionality
  • Summary
  • Chapter 7: Understanding the Database
  • Technical requirements
  • Understanding the database viewer
  • Customizing the Django admin panel
  • Switching to a MySQL database
  • Summary
  • Chapter 8: Implementing User Signup and Login
  • Technical requirements
  • Creating an accounts app
  • Creating a basic signup page
  • Improving the signup page to handle POST actions
  • Customizing UserCreationForm
  • Creating a login page
  • Implementing a logout functionality
  • Summary
  • Chapter 9: Letting Users Create, Read, Update, and Delete Movie Reviews
  • Technical requirements
  • Creating a review model
  • Creating reviews
  • Reading reviews
  • Updating a review
  • Deleting a review
  • Summary
  • Chapter 10: Implementing a Shopping Cart System
  • Technical requirements
  • Introducing web sessions
  • Creating a cart app
  • Adding movies to the cart
  • Listing movies added to the cart
  • Removing movies from the cart
  • Summary
  • Chapter 11: Implementing Order and Item Models
  • Technical requirements
  • Analyzing store invoices
  • Creating the order model
  • Creating the Item model
  • Recapping the Movies Store class diagram
  • Summary
  • Chapter 12: Implementing the Purchase and Orders Pages
  • Technical requirements
  • Creating the purchase page
  • Creating the orders page
  • Recapping the Movies Store MVT architecture
  • Summary
  • Chapter 13: Deploying the Application to the Cloud
  • Technical requirements
  • Managing GitHub and Git
  • Cloning your code onto PythonAnywhere
  • Configuring virtual environments
  • Setting up your web app
  • Configuring static files
  • Summary
  • Index
  • Other Books You May Enjoy