django-file-md5 Django File Md5 Installation pip install django-file-md5 Usage from django_file_md5 import calculate_md5 def xxx(request): photo = request.FILES.get('photo', '') # if photo: # md5 = calculate_md5(photo) md5 = calculate_md5(photo)