All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Attempt to load static files from disk when using
ManifestStaticFilesStorage(#48) - Add debug logging to django_url_fetcher
- Add Python 3.10 and Django 4.1 to test matrix, remove Django 2.2
Another post-release backporting fixes from 2.x for those still using WeasyPrint/Cairo.
- Add
font_configargument toWeasyTemplateResponse.get_css()to properly set up theweasyprint.CSSinstance forweasyprint.HTML.render()(20f701b, #54) - Add Django 3.2 & 4.0 to test matrix, remove 3.0 & 3.1
- Add
font_configargument toWeasyTemplateResponse.get_css()to properly set up theweasyprint.CSSinstance forweasyprint.HTML.render()(f944d45, #54)
- WeasyPrint >= 53.0 is required ("PDF is the only output format supported!")
- Remove
PNGViewandCONTENT_TYPE_*constants - Add Django 3.2 to test matrix, remove 3.0
- Pin WeasyPrint<53 due to module path change (thanks @hnb2, @n1ngu, @ThomSawyer)
- Add
pathlibsupport todjango_url_fetcher(ba77f41, #42, by @niccolomineo) - Fix missing import in README example (2f33713, by @ScottBarkman)
- Fix typo in CHANGELOG (293e6e7, by @GitRon)
- Pin WeasyPrint<53 due to module path change
- Handle
SCRIPT_NAMEbeing added toMEDIA_URLin Django 3.1 (https://code.djangoproject.com/ticket/25598)
- Fix classifiers and changelog
- Drop Python 2 support: WeasyPrint >= 43 and Django >= 2.2 are required
- Update README to demonstrate override of URL fetcher (65ced6f)
- Fix URL fetcher when used with empty
MEDIA_URL(fd3fb30, #34) - Add tests for views and
django_url_fetcher& tox configuration
-
Update signature of
weasyprint.default_url_fetcherby Vlastimil Zíma (c9abfe8) -
Add
font_configto handle@font-configrulesAn additional argument called font_config must be provided to handle
@font-configrules. The samefonts.FontConfigurationobject must be used for different CSS objects applied to the same document.https://weasyprint.readthedocs.io/en/latest/api.html#weasyprint.CSS
- Fix for usage of
urlparseby Jay Ennis (244b89b)
- Use Python 3 compatible import of
urlparseby Christian Karrié (4eb72cf)
- Fix for
content_typewith WeasyTemplateResponse
- Add
custom_url_fetcherreadingfile://urls directly from disk or storage - Add
content_typeto WeasyTemplateResponse - Fixed example in README (46fc62e)
- Packaging improvements by Thomas Grainger (8baf780)
- Require Django>=1.8
-
Add override for URL fetcher by Thomas Jost (d946d6b)
Overriding the default URL fetcher from Weasyprint is often useful. For instance, this makes it easy to open local files that are exposed on other subdomains (CDN…) without having to do a single network request, which makes the PDF rendering much faster.
-
Fix for Content-Disposition
- Add switch for 'attachment' Content-Disposition
- Transfer of GitHub repo to Florian Demmer
- Merge improvements by Tim Bell (6f10a0a), Thomas Desveaux (249ad56) and Bruno Alla (ce1e2dc, ddc0343)
- Add generating PNG
- Initial release by Jeroen Dekkers
- Some credits for API design and actual source for documentation go to Filip Wasilewski and other authors and contributors of django-easy-pdf.