Automatically Create User Profiles - Django Wednesdays Twitter #3

Опубликовано: 14 Октябрь 2024
на канале: Codemy.com
9,533
278

In this video we'll automatically create Profiles when a New User signs up for our Twitter app.

We'll also have that new User automatically follow themselves so that they can see their own Tweets, or Meeps, in the future.

We'll use a Django Signal post_save hook to do all this automatically behind the scenes.

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:56 - Django Signals Documentation
2:30 - Import Post_Save Signal To Models.py
3:12 - Create_Profile Automation
4:35 - Hook our Signal
5:30 - Test It Out
6:22 - User Automatically Follow Themselves
8:31 - Optionally Use Decorator
10:00 - Conclusion