ImageDataURI is a middleware plug-in for Django that embeds images into html based upon an arbitrary filesize rule.
1. Copy imagedatauri.py into the django middleware folder.
2. Add the ‘IMAGEDATAURI_MAX_IMAGE_SIZE’ variable to settings.py. This is a number in bytes.