это мой html
<!DOCTYPE html>
{% load static %}
<html >
<head>
<title>Email</title>
</head>
<body>
<br><br><br>
<img src="{% static 'logo.png' %}" title="" style="height: 6.1rem;">School Collebes
<br><br>
<p>To: {{ email }}</p>
<p>Your Registration has been approved.
Please use this {{ email }} as your username and {{ password }} as your password.
You may now start enrolling your student using this link https://....</p>
<br><br><br>
<h2>REGISTRAR</h2>
</body>
</html>
и это мой admin.py
@admin.register(ParentsProfile)
class ParentsProfile(admin.ModelAdmin):
list_display = ('Father_Email','Fathers_Firstname' , 'Fathers_Middle_Initial', 'Fathers_Lastname', 'Request')
ordering = ('Request',)
search_fields = ('Request',)
actions = ['Send_Email','Send_Email_Disapproved']
def Send_Email(self, request, queryset):
for profile in queryset:
context = {
'email': profile.Father_Email,
'password': profile.Parent_Password,
}
html_message = render_to_string('Homepage/email.html',context=context)
send_mail(subject="Invite", message='',html_message=html_message, from_email=settings.EMAIL_HOST_USER,
recipient_list=[profile.Father_Email])
я просто хочу отобразить желаемое изображение в моем email_html, но я не знаюпричина, почему я не могу отобразить изображение. я что-то не так с моим кодом? Я уверен, что изображение, которое я объявляю в своем email_html, находится на правильном пути.