Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Dumps html pages and their corresponding assets into a tar file

Project description

https://badge.fury.io/py/django-html-dumper.svg https://travis-ci.org/adrienbrunet/django-html-dumper.svg?branch=master https://codecov.io/gh/adrienbrunet/django-html-dumper/branch/master/graph/badge.svg

Dumps html pages and their corresponding assets into a tar file

Documentation

The full documentation is at https://django-html-dumper.readthedocs.io.

Quickstart

Install HTML dumper:

pip install django-html-dumper

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'html_dumper.apps.HtmlDumperConfig',
    ...
)

Features

  • Add a django command dump_html
python manage.py dump_html [path/to/my/page1 my/page2] (default to ['/', ])

This will create a directory HTML_OUTPUT (name can be customized via settings.SITE_OUTPUT_DIRECTORY) which will contain :

  • the content of the page under the given urls for all available languages
  • the static folder (copied from the output of collectstatic, beware of all the admin assets…)

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.2.5 (2017-08-14)

  • First usable (ish) version

0.1.0 (2017-08-14)

  • First release on PyPI.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_html_dumper-0.2.6-py2.py3-none-any.whl (6.8 kB) Copy SHA256 hash SHA256 Wheel 2.7 Aug 22, 2017
django-html-dumper-0.2.6.tar.gz (6.6 kB) Copy SHA256 hash SHA256 Source None Aug 22, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page