Skip to content

adrienbrunet/django-html-dumper

Repository files navigation

HTML dumper

image

image

image

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published