Welcome to your first project with Django. One of the most common things you'll do as you begin to design your own web applications is to manage user authentication. We covered the generic user creation process earlier that Django provides, but now we'll delve a little deeper by creating our own custom user model to replace the default one that Django provides. We'll also integrate social login so that you can login via Facebook into your application!
Part of course:
Hands-on Assignment: Custom User Model & Login via Facebook
- Project Goals
- 1. Set up Packages
- Python Packages Requirements File
- 2. Create Custom User Model & UserManager
- CLUser Model
- CLUserManager
- Add the new User to the admin
- Update settings
- Update the Blog App to point to our new user
- Migrate
- 3. Serve your local site to the world using Ngrok
- Install Ngrok
- Modify settings.py
- 4. Setting up allauth
- Add Authentication Backends
- Add allauth related settings
- Modify the urls.py
- 5. Setting up our Facebook App
- Create the Facebook App
- Create the Social Account in our Admin
- 6. Integrating
- Requesting the appropriate information from Facebook
- Modifying the default allauth flow
- Modifying Templates
- 7. Testing
Show admin stats