Answers for "how to split url from lasturl in django"

1

python everything after last slash

url.rsplit('/', 1)[-1]
Posted by: Guest on May-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language