Django ID based dynamic URL with base64
Why would you like to have base64 encoded ids, pretty bad choice for URL string as it has signs that aren't URL friendly
You should extend your object with extra field that contains for instance random generated slug or UUID and have it as parameter in URL instead of id
then you would query in your view by that field
I'm working on a django application that takes an ID based dynamic URL, but rather than having the URL be straight up the ID, as it is right now:

url(r'^history/(?P< id>[0-9]+)/$', views.history)

I would like the URL to be the base64 encoded version of the object's ID, and i couldn't find a lot about encoding Django URLs.