Django 2 by Example
上QQ阅读APP看书,第一时间看更新

Building a Social Website

In the preceding chapter, you learned how to create sitemaps and feeds and built a search engine for your blog application. In this chapter, you will develop a social application. You will create a functionality for users to log in, log out, 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 topics:

  • Using the Django 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.