I have the following URL after checkout -
https://www.mywebsite.com/register/?session_id=cs_test_a1LrWp5FzCp18vnxTXyQVwpCVwBE7HL0rkbyvea8i9QCVIJoxqIXxMbDx9
I would like to extract the session ID part of this url to use -
cs_test_a1LrWp5FzCp18vnxTXyQVwpCVwBE7HL0rkbyvea8i9QCVIJoxqIXxMbDx9
I know I can use session_id = url.rsplit('=', 1)[-1]
to split it from the url but how do I get python to read the current url?
I have tried path_info = request.META.get('PATH_INFO')
but that just reads '/register/'