In fact, this problem is relatively simple. If you are using ModelForm, you can rewrite the corresponding fields and that will be fine. For example, an effect similar to the following:
If you put it in a template variable, use {{url | safe}} to prevent the url from being automatically escaped. If not in a template, use django.utils.html.mark_safe to mark the string as unescaped.
In fact, this problem is relatively simple. If you are using ModelForm, you can rewrite the corresponding fields and that will be fine. For example, an effect similar to the following:
If you put it in a template variable, use {{url | safe}} to prevent the url from being automatically escaped. If not in a template, use django.utils.html.mark_safe to mark the string as unescaped.