Django: How to add object date (or any other field) within a TextField of the same object on Django Template?

info - TextField: The Wednesday six weeks before Easter Sunday – , is a Christian holy day of fasting

Date: February 22, 2023

Both fields are being fetched from database and same object. I am trying to get the following on my django template:

The Wednesday six weeks before Easter Sunday – February 22, 2023, is a Christian holy day of fasting

Basically injecting date into info field of the same object.,

How should I implement this? I have already tried RichTextUploadingField with:

info - RichTextUploadingField : The Wednesday six weeks before Easter Sunday – {{ obj.date }}, is a Christian holy day of fasting

Template: {{ object.info|safe }}

However this is not working for me.

Thanks

Back to Top