Skip to main content

Simple Excel file Generator

Project description

Simple Excel File Generator From Django Model.

Required Packages:

pip install pandas

Usage :

from django_model_to_excel import generate_excel_file

def fun(request):
    queryset = User.objects.all().values()
    # all_to_excel accepts six parameter
    # queryset will be your model data
    # file_path : 'your absloute path' or None if it is None fill will store in your project Base Directory
    # file_name : 'string' or None
    # sheet_name : 'string' or None
    # index and header : Boolean
    generate_excel = generate_excel_file.all_to_excel(queryset, file_path, file_name, sheet_name, index, header)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_model_to_excel-0.1.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

django_model_to_excel-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page