How does django return html directly without returning the html file?

if you want to return a small piece of html code directly in views instead of a html file, how to do it

Mar.18,2022

from django.http.response import HttpResponse

def res_func (req):

html_content= '<a href="https://github.com/Wenvki/django-idcops">idcops</a>'
return HttpResponse(html_content)

content-type is specified as text/plain

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e511ee-45107.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e511ee-45107.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?