In my djangoApp , views.py I have :
status = True
context = {'status': status ,
"form":ProfileForm()
}
return render(request, "sample/Newsample.html", context)
What if I want to use the context with redirect function? for example:
status = True
context = {'status': status ,
"form":ProfileForm()
}
return redirect("sample/Newsample.html", context) - this does not work!!
How can I use context with redirect function?