O'Reilly logo

Django By Example by Antonio Melé

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Building a Social Website

In the previous chapter, you learned how to create sitemaps and feeds, and you built a search engine for your blog application. In this chapter, you will develop a social application. You will create functionality for users to login, logout, edit, and reset their password. You will learn how to create a custom profile for your users, and you will add social authentication to your site.

This chapter will cover the following points:

  • Using the authentication framework
  • Creating user registration views
  • Extending the User model with a custom profile model
  • Adding social authentication with python-social-auth

Let's start by creating our new project.

Creating a social website project

We are going to create a social application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required