How to fix result display in project

How to adjust the project to improve the performance result:

in myworld/members/

def testing(request):
template = loader.get_template('template.html')
context = {
    'heading': 'Hello <i>my</i> World!',
return HttpResponse(template.render(context, request))

in myworld/members/templates/template.html :

    <html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {% autoescape off %}
        <h1>{{ heading }}</h1>
    {% endautoescape %}

    <p>Check out to see what the heading variable looks like.</p>


result : enter image description here

main result : enter image description here

enter image description here

please help me

===== put like this in ( ========

context = {'heading': 'Hello <i>my</i> World!'}

==== Html code ======

{% autoescape off %}
{% endautoescape %}

==== Html result ======

enter image description here

for more information about autoescape

Back to Top