Django question
I would like to ask whether it is possible or not to distinguish in view or in template if page was reloaded or page was reached by url from the other page? If shorten it out, need to know if it is any marker that would indicate that page got reloaded by F5 or whatever?
Perhaps it is probably possible to figure out by analyzing request.
Only 1 idea that comes to my mind is following:
request.get_full_path()# – specifies full address of the current page
request.META.get('HTTP_REFERER')# – specifies full address of previous page
So that theoretically if former == last – page is reloaded, but it doesn't work this way.
If you know any solution or hint -please communicate it.
Thank you and have a nice day!