'Context not showing all variable in the dictionary in HTML in django and the server doesnot reloads

Every time i add a new variable to the dictionary it does not show in the HTML. Does Django reload its server itself or is there any other way to reload the server. If I close the server then run it again the variable is showing in the HTML. Also, I notice that the server link stays the same

[23/Mar/2022 21:30:43] "GET / HTTP/1.1" 200 81
[23/Mar/2022 21:34:01] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:02] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:02] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:02] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:03] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:03] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:03] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:04] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:04] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:04] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:04] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:05] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:05] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:16] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:29] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:30] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:30] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:30] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:30] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:38] "GET / HTTP/1.1" 200 101
[23/Mar/2022 21:34:39] "GET / HTTP/1.1" 200 101

View.py

from django.shortcuts import render
# Create your views here.
def index(request):
    context = {
        "name":"patrick",
        "age" :23,
        "nationality" :"British",
        "height" :"180cm"
    }

    return render(request,"index.html",context)

HTML file

<h1>
    Welcome  {{ name }}<br>your age is {{age}}<br>your nationality is {{nationality}}<br> your height is {{height}}

If I add something inside the context variable then I have to first close the server and then start a new one then only it will show



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source