Book Image

Building Django 2.0 Web Applications

By : Tom Aratyn
Book Image

Building Django 2.0 Web Applications

By: Tom Aratyn

Overview of this book

<p>This project-based guide will give you a sound understanding of Django 2.0 through three full-featured applications. It starts off by building a basic IMDB clone and adding users who can register, vote on their favorite movies, and upload associated pictures. You will learn how to use the votes that your users have cast to build a list of the top 10 movies. This book will also take you through deploying your app into a production environment using Docker containers hosted on the server in Amazon's Electric Computing Cloud (EC2). </p><p> </p><p>Next, you're going to build a Stack Overflow clone wherein registered users can ask and answer questions. You will learn how to enable a user asking a question to accept answers and mark them as useful. You will also learn how to add search functionality to help users find questions by using ElasticSearch. You'll discover ways to apply the principles of 12 factor apps while deploying Django on the most popular web server, Apache, with mod_wsgi. Lastly, you'll build a clone of MailChimp so users can send and create emails, and deploy it using AWS. </p><p> </p><p>Get set to take your basic Python skills to the next level with this comprehensive guide! </p><p></p>
Table of Contents (19 chapters)
Title Page
www.packtpub.com
Contributors
Preface
Index

Chapter 1. Starting MyMDB

The first project we will build is a basic Internet Movie Database (IMDB) clone calledMy Movie Database (MyMDB)written in Django 2.0 that we will deploy using Docker. Our IMDB clone will have the following two types of users: users and administrators. The users will be able to rate movies, add images from movies, and view movies and cast. The administrators will be able to add movies, actors, writers, and directors.

In this chapter, we'll do the following things:

  • Create our new Django project MyMDB, an IMDB clone
  • Make a Django app and create our first models, views, and templates
  • Learn about and use a variety of fields in our models and create relationships across models

Note

The code for this project is available online at https://github.com/tomaratyn/MyMDB

By the end, we'll be able to add movies, people, and roles into our project and let users view them in easy-to-customize HTML templates.