{% extends "admin/dj_cache_panel/base.html" %} {% load i18n admin_urls static admin_list %} {% block content %}
{% if caches_info %}

{% trans 'Cache Instances' %}


{% for cache_info in caches_info %} {% endfor %}
{% trans 'Cache Name' %} {% trans 'Backend' %} {% trans 'Query' %} {% trans 'Get' %} {% trans 'Edit' %} {% trans 'Add' %} {% trans 'Delete' %} {% trans 'Flush' %}
{{ cache_info.name }} {{ cache_info.backend_short }} {% if cache_info.error %}
{{ cache_info.error }} {% endif %}
{% if cache_info.abilities.query %} {% else %} {% endif %} {% if cache_info.abilities.get_key %} {% else %} {% endif %} {% if cache_info.abilities.edit_key %} {% else %} {% endif %} {% if cache_info.abilities.add_key %} {% else %} {% endif %} {% if cache_info.abilities.delete_key %} {% else %} {% endif %} {% if cache_info.abilities.flush_cache %} {% else %} {% endif %}

{% trans 'Abilities Legend:' %}

{% else %}

{% trans 'Cache Configuration Required' %}

{% trans 'To use the Cache panel, you must configure cache instances in your Django settings.' %}

{% trans 'Please add a configuration dictionary to your settings.py like the example below:' %}

{% trans 'After adding the configuration, restart your Django server to see your Cache instances.' %}

{% endif %}
{% endblock %}