django-file

Django File Relative


Keywords
Django, File
Install
pip install django-file==1.0.4

Documentation

django-file

Django File Relative

Installation

pip install django-file

Usage

from django_file import calculate_md5

def xxx(request):
    photo = request.FILES.get('photo', '')
    # if photo:
    #     md5 = calculate_md5(photo)
    md5 = calculate_md5(photo)