1👍
✅
You could use request.META.get('HTTP_REFERER')
in the view and extract the info from there.
0👍
You can do that with JS It should be something like this:
var link = [];
var url = window.location.pathname;
link = url.split('/');
var some_id = link[link.length-1];
- [Answer]-Error during template rendering
- [Answer]-How to get raven to report Django runscript exceptions to Sentry?
- [Answer]-Search for a key in django.core.cache
- [Answer]-Is Django's localflavor.ca.ca_provinces.PROVINCE_CHOICES right?
- [Answer]-Django – Getting form field by string var
Source:stackexchange.com