Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 420 Bytes

README.rst

File metadata and controls

17 lines (12 loc) · 420 Bytes

# django-rest-framework-excel A custome render to Excel 2010 xlsx files using openpyxl

Usage

views.py

from rest_framework.views import APIView
from rest_framework.settings import api_settings
from rest_framework_excel.renderers import ExcelRenderer

class MyView (APIView):
    renderer_classes = [ExcelRenderer] + api_settings.DEFAULT_RENDERER_CLASSES
    ...