export to docx file problem

ı export my table with docx . But when ı export to richtext field ı am not reading the value.
how do i solve the problem

my function
def docx_icerik(request,kategori_id):


context = {
response['Content-Disposition']='attachment; filename=Metin.docx'   
return response

docx. file
{% for icerik in icerikler%}
{{metin.baslik}} ı am reading this value
{{metin.icerik}} but this value richtext field this field not reading
{% endfor %}

When posting code here, copy/paste the code into the body of your post, surrounded by lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted, which is critical with Python. (Note, you should also surround the traceback this way.)

Also, it appears that your issue may be related to a third-party library. Please identify all third-party libraries that may be involved with this issue - including the version number for each.

I’ll look into 3rd part software, thanks