Giter VIP home page Giter VIP logo

python-django-exporting-files's Introduction

python-django-exporting-files

This is a Python/Django app which displays how simple it is to export Excel and PDF files.

For creating Excel files we're using XlsxWriter module. The code contains information on how to add data to the Excel file, how to resize columns and rows, and also how to add charts. For more details read this article: How to export Excel files in a Python/Django application.

For creating PDF files we're using ReportLab library. The code contains information on how to create PDF documents, how to add paragraphs, tables or charts. For more details read this article: How to create PDF files in a Python/Django application using ReportLab

This application is developed by the awesome ASSIST Software team.

How to install the application

  • Clone the code from git.
  • Create an environment using virtualenv and activate it.
  • Install the project dependencies with pip. Run this command: pip install -r requirements.txt while being in the folder with the requirements.txt file.
  • Access mysql server using: mysql -u root -p and create the database: CREATE DATABASE db_name;
  • Create a local_settings.py file in the same folder as settings.py. Change the name and user if needed and add the password.
DATABASES = {
    'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'weather',
    'USER': 'root',
    'PASSWORD': '',
    'HOST': '',
    'PORT': ''
    }
}
DEBUG = True
  • Run python manage.py migrate to create the tables.
  • Run python manage.py runserver to actually run the application and explore its features.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.