Display Profile Image Of A Customuser In Django
I am trying to show the uploaded image of a student in student profile but its not working. Below is my code Models.py class Students(models.Model): id=models.AutoField(primary_k
Solution 1:
You can get the profile picture of the user as follows:
<img src="{{ student.profile_pic.url }}" class="img-circle elevation-2" alt="User Image">
Post a Comment for "Display Profile Image Of A Customuser In Django"