When you need to join url paths!
pip install urljoin
import urljoin
urljoin.url_path_join("a", "b")
'a/b'
urljoin.url_path_join("a/", "/b")
'a/b'
urljoin.url_path_join("a", "b", trailing_slash=True)
'a/b/'
Feel free to contribute via pull request or file an issue.
© 2017 tivvit.cz
Released under MIT license