Skip to content

Simple example of Django application to export PDF using reportlab and weasyprint

Notifications You must be signed in to change notification settings

rodrigoddc/django_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django exporting PDF

Simple example of Django application to export PDF using reportlab and weasyprint

Main Requirements

Python3 Django Django REST Framework Chart.js

How to use

Create a folder to store this project. Open this folder on terminal and run the following commands

1. Clone the project

git clone https://github.com/rodrigoddc/django_pdf.git

2. Create a virtual environment

python3 -m venv venv

3. Activate the the virtual environment previously created

on linux: source ./venv/bin/activate on windows: ./venv/Scripts/activate.bat

4. Installing libs

pip install -r requirements.txt

5. Creating database

python manage.py makemigrations

6. Migrating database models

python manage.py migrate

7. Running

python manage.py runserver

After that, you'll be able to access the project at 127.0.0.1:8000 or localhost:8000/ on your browser.

This application is just a case study, so SECRET_KEY, DEBUG and DATABASES are present as plain text
Never do this in production!

About

Simple example of Django application to export PDF using reportlab and weasyprint

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published