Profile Pictures - Django Wednesdays Twitter #12

Published: 28 February 2023
on channel: Codemy.com
5K
12

In this video I'll show you how to create profile pictures for your Twitter Clone Musker Meep App with Django and Python.

We'll change our model to save the location of uploaded profile pictures.

We'll also make a change to our settings.py and urls.py file to save the uploaded image files to a Media directory.

Finally, we'll output the profile pictures on the user's profile page.



Timecodes

0:00​​ - Introduction
0:57 - Tweak Settings.py
3:43 - Tweak Original Urls.py
5:41 - Add Profile_Image to Model
7:13 - Pip Install Pillow
7:44 - Make Migration and Migrate
8:33 - Upload Profile Pick In Admin Area
9:46 - Add Logic To Check For Image
11:30 - Grab Image URL
12:18 - Add IMG SRC Tag
12:41 - Conclusion


Watch video Profile Pictures - Django Wednesdays Twitter #12 online without registration, duration 14 minute 06 second in high hd quality. This video was added by user Codemy.com 28 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5 thousand once and liked it 12 people.