What are the options when you want to return the user to the same page in Django and what are the pros/cons of each?
Methods I know:
One of the way is using HTTP_REFERER header like as below:
HTTP_REFERER
from django.http import HttpResponseRedirect def someview(request): ... return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
Not sure of cons of this!