Django by Example
4.1 (27 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
216 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Django by Example to your Wishlist.

Add to Wishlist

Django by Example

Create your own line of successful web applications with Django
4.1 (27 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
216 students enrolled
Created by Packt Publishing
Last updated 6/2017
Curiosity Sale
Current price: $10 Original price: $125 Discount: 92% off
30-Day Money-Back Guarantee
  • 9 hours on-demand video
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Build practical real-world web applications with Django
  • Use Django with other technologies such as Redis, Celery, Solr, and Memcached
  • Develop pluggable Django applications to create advanced features
  • Optimize your code and use the cache framework
  • Add internationalization to your Django projects
  • Enhance the user experience using JavaScript and AJAX
  • Add social features to your projects
  • Build RESTful APIs for your applications
View Curriculum
  • Some basic knowledge of Python, HTML, and JavaScript is recommended.
  • This is an easy-to-follow video to help you build four different production-ready Django projects. Each project focuses on a particular area of the framework and each topic within the projects is explained with practical examples and includes best practice recommendations.

Django is a powerful Python web framework designed to develop web applications quickly, from simple prototypes to large-scale projects. Django encourages clean, pragmatic design, and provides developers with a comprehensive set of tools to build scalable web applications. This video will walk you through the creation of four professional Django projects, teaching you how to solve common problems and implement best practices.

The video begins by showing you how to build a blog application, before moving on to developing a social image bookmarking website, an online shop, and an e-learning platform. You will learn how to build a search engine and implement a user activity stream. Furthermore, you will create a recommendation engine, an e-commerce coupon system, and a content management system.

The video will also teach you how to enhance your applications with AJAX, create RESTful APIs, and setup a production environment for your Django projects. After going through this video, you will have a good understanding of how Django works and how to integrate it with other technologies to build practical, advanced web applications.

About The Author

Antonio Mele holds an MSc in Computer Science. He has been developing Django projects since 2006 and leads the django es Spanish Django community. He has founded Zenx IT, a technology company that creates web applications for clients of several industries. Antonio has also worked as a CTO for several technology-based start-ups. His father inspired his passion for computers and programming.

Who is the target audience?
  • If you are a web developer who is completely new to or familiar with Django and wants to make the most of it, this video is for you.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
78 Lectures
Building a Blog Application
10 Lectures 53:21

This will give brief introduction to Entire course.

Preview 04:47

Learn to install Django for local development. 

Installing Django

Learn to build basic steps to complete blog site.

Creating Your First Project

Define the initial data models for our blog. 

Designing the Blog Data Schema

Learn to create a simple administration site to manage blog posts. 

Creating an Administration Site for Your Models

Learn how to retrieve information from the database and interact with it. 

Working with QuerySet and Managers

We learn to create our application views and then we will define an URL pattern for each view 

Building List and Detail Views

The ability to add templates to display posts in a user-friendly way.

Creating Templates for Your Views

Learn to import the Django paginator classes and modify the post_list view. 

Adding Pagination

Define your views as class methods and provide base view classes for this. 

Using Class-Based Views
Enhancing Your Blog with Advanced Features
6 Lectures 33:54

Our objective in this video is to allow users to share posts by sending them by e-mail. To achieve this our video will help us to create forms and handle them in views. 

Preview 05:48

In this video we will send emails with django and render forms in templates 

Sharing posts by E-Mail

In this video we will build the base for creating a comment system. For that we will create the comments and the functionality to manage the comments for a post 

Creating a Comment System

This video is the continuation of the previous one. Here we will cover how to Add comments to the post detail template. 

Adding Comments to the Post

Ability to create a way to tag our posts 

Adding Tagging Functionality

Learn to build a functionality to display similar posts by the number of tags that the user share 

Retrieving Posts by Similarity
Extending Your Blog Application
4 Lectures 31:00

The ability to create a template of tags and filters. 

Preview 10:57

Learn to generate sitemaps for your site. 

Adding a Sitemap to Your Site

Learn to create sitemaps using the site's framework. 

Creating Feeds for Your Blog Posts

The ability to perform case-insensitive lookups using the icontains filter. 

Adding a Search Engine with Solr and Haystack
Building a Social Website
6 Lectures 46:57

Learn to create a social application that will allow users to share images they find on the Internet. 

Preview 02:45

Learn to build authentication framework that can handle user authentication, sessions, permissions, and user groups. 

Using the Django Authentication Framework

The ability to change users passwords. 

Password Authentication

Learn to build a view to allow visitors to create a user account. 

User Registration and User Profiles

Learn to build an authentication through backend by using different sources. 

Building a Custom Authentication Backend

The ability to add social authentication to your site using services such as Facebook, Twitter, or Google. 

Adding Social Authentication to Your Site
Sharing Content in Your Website
7 Lectures 42:43

Learn to allow users to bookmark and share images they find in other websites and share them in our site. 

Preview 05:21

Learn to allow users to bookmark images from external websites. 

Posting Content from Other Websites

The ability to create a simple detail view for displaying an image that has been saved into our site. 

Creating a Detail View for Images

Learn to display the original image in the detail page. 

Creating Image Thumbnails Using Sorl-Thumbnail

Generate AJAX actions to our application. 

Adding AJAX Actions with jQuery

The ability to restrict our AJAX views to allow only requests generated via AJAX. 

Creating Custom Decorators for Your Views

The ability to use AJAX pagination to build infinite scroll functionality. 

Adding AJAX Pagination to Your List Views
Tracking User Actions
7 Lectures 49:38

Learn to build a follower system into our project which users will be able to follow each other and track what other users share on the platform. 

Preview 06:30

Learn to build an activity stream application so that every user can see recent interactions of users he follows. 

Building a Follower System (Continued)

Learn to save the actions performed by users on the website. 

Building a Generic Activity Stream Application

Learn to denormalize data from our Image model and use Django signals to keep the data updated. 

Building a Generic Activity Stream Application (Continued)

Learn to denormalize data from our Image model and use Django signals to keep the data updated 

Using Signals for De-normalizing Counts

Learn how Redis can be used for building new functionality into our project. 

Using Redis for Storing Item Views

In this video We are going to create a ranking of the most viewed images in our platform 

Using Redis for Storing a Ranking
Building an Online Shop
6 Lectures 50:38

This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order. 

Preview 13:22

After building the product catalog, the next step is to create a shopping cart that will allow users to select the products that they want to purchase. So, What are we waiting for? Let's do it! 

Building a Shopping Cart

Now that we have a Cart class to manage the cart, we need to create the views to add, update, or remove items from it. We need to create these views. So, let's see how to do it! 

Creating Shopping Cart Views

This video will let you create a context processor which will enhance the efficiency of your shopping cart and give a better user interaction.

Creating a Context Processor for the Current

When a shopping cart is checked out, you need to save an order into the database. Orders will contain information about customers and the products they are buying. For this, you need to register customer orders. This video will show you how to achieve this. 

Registering Customer Orders

In many situations you might want to return a response to the user as quickly as possible and let the server execute some process asynchronously. Using Celery, you can create asynchronous tasks easily, let them be executed by workers as soon as possible and schedule them to run at a specific time. Let's do it right now! 

Launching Asynchronous Tasks with Celery
Managing Payments and Orders
5 Lectures 36:52

Learn to integrate PayPal, which is one of the most popular payment gateways. 

Preview 13:42

Learn to get a notification which is instantly sent to your server when the gateway processes a payment. 

Payment Notifications

Learn to customize the administration site to be able to export orders to CSV files. 

Exporting Orders to CSV Files

Learn to customize the administration site beyond what is possible through configuration of ModelAdmin, creation of admin actions, and overriding admin templates. 

Extending the Admin Site with Custom Views

Learn to extend an admin template which you need to know its structure and identify existing blocks. 

Generating PDF Invoices Dynamically
Extending Your Shop
10 Lectures 01:16:52

Learn to create a model to store the coupon code, a valid time frame, and the discount to apply. 

Preview 15:22

Learn to mark strings for translation both in Python code and in your templates. 

Adding Internationalization and Localization

Learn to translate literals in your Python code. 

Translating Python Code

Learn to add template tag to translate string in order to use the translation template tags. 

Translating Templates

The ability to edit translations using the same interface as the Django administration site. 

Using the Rosetta Translation Interface

Learn to provide search engines with URLs that will rank better for each language. 

URL Patterns for Internationalization

The ability to add a language selector to our site. 

Allowing Users to Switch Language

Learn to provide a solution for translating models out of the box. 

Translating Models with django-parler

Generate a separate database table for each model that contains translations. 

Translating Models with django-parler (Continued)

Learn to create a simple yet powerful recommendation engine that suggests products that are usually bought together. 

Building a Recommendation Engine
Building an E-Learning Platform
10 Lectures 01:02:46

Learn to build a flexible Content Management System (CMS) that allows instructors to create courses and manage their contents. 

Preview 01:35

Learn to build e-Learning platform which will offer courses in various subjects. 

Building the Course Models

Learn to create a Content model that represents the module's contents. 

Creating Models for Diverse Content

The ability to create your own model fields to store custom data or alter the behavior of existing fields. 

Creating Custom Model Fields

Learn to build a content management system (CMS) which will allow instructors to create courses and manage their content. 

Creating a Content Management System

The ability to create a group for instructor users and assign permissions to create, update, and delete courses. 

Working with Groups and Permissions

Learn to work with multiple forms on the same page. 

Using Form-sets

Learn to create a view that handles creating or updating objects of any content model. 

Adding Content to Course Modules

Learn to display all modules for a course and list contents for a specific module. 

Managing Modules and Contents

Learn to launch an AJAX to store the new module order. 

Reordering Modules and Contents
2 More Sections
About the Instructor
Packt Publishing
3.9 Average rating
7,297 Reviews
52,182 Students
616 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.