{% extends "admin/index.html" %} {% block content %}

Database Archive

Create or rebuild {% if metadata.db.size %} Delete Download {% endif %}

Media Archive

Create or rebuild {% if metadata.media.size %} Delete Download {% endif %}

Data Archive (db + media)

Create or rebuild {% if metadata.data.size %} Delete Download {% endif %}

Information

To inject json data into your database you must use the loaddata command from django. If you use a django project build with cookiecutter-djangocms3-buildout you can use the shortcut:
make reset_sqlite
You may install media and database by using this command
bin/django-instance datadownload {{request.scheme}}://{{request.get_host}}{% url 'download_archive' 'data' %}?token={{token}}
            
{% endblock %}