In my project the DEBUG option is True but after updating and reloading the template the change is not reflected.
**My os is windows 10.
But after reading server update is reflected.
But I want to see the change after reloading the page without restarting the server.
- Before updating
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
`context = {`
'name': `'before updating`',
`'age': 25,`
`'nationality': 'United Status'`
`}`
return render(request, 'index.html', context)
-after updating
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
context = {
'name': 'after updating',
'age': 25,
'nationality': 'United Status'
}
return render(request, 'index.html', context)
-here is my template code
<h1>
Welcome, {{name}}
</h1>
Someone help me.