I am Beginner in Django and
In the case on redirect view template my message is not available.
Any one can please explain the reason or there is some error in my code.
if next_val:
messages.warning(request, 'Please Login first')
return redirect(reverse(next_val))
else:
messages.warning(request, 'Hello Message !')
return redirect('/home/')
follow :
- How to pass a message from HttpResponseRedirect in Django?
- Django messaging framework messages not making it passed the redirect()
and many but not usefull :(