{% extends 'base.html' %} {% load i18n %} {% block content %}

{% trans "Tools" %}

{% trans "Export Aliases" %}

{% csrf_token %}

{% trans "Database Export" %}

{% trans "Export the entire database as a compressed file." %}

{% trans "Export Database" %}

{% trans "Import Aliases" %}

{% trans "Import aliases from a JSON file. The file should contain a list of objects with the following fields:" %}

  • {% trans "alias (required): The short alias for the URL" %}
  • {% trans "original_url (required): The original URL" %}
  • {% trans "created_at (optional): Creation timestamp (ISO format)" %}
  • {% trans "updated_at (optional): Last update timestamp (ISO format)" %}

{% trans "Example JSON file content:" %}

[
  {
    "alias": "example",
    "original_url": "https://example.com",
    "created_at": "2023-09-08T12:00:00Z",
    "updated_at": "2023-09-08T12:00:00Z"
  },
  {
    "alias": "google",
    "original_url": "https://www.google.com"
  }
]
            
{% csrf_token %}
{% endblock %}