{% extends 'silk/base/base.html' %} {% load silk_inclusion %} {% load static %} {% block pagetitle %}Silky - Settings{% endblock %} {% block menu %} {% root_menu request %} {% endblock %} {% block style %} {% endblock %} {% block data %}

Settings

Configure django-silky appearance and data management.

{# ── Appearance ─────────────────────────────────────────────── #}

Appearance

Choose a colour scheme. Your choice is saved in the browser.

Header

Choose a header style. Your choice is saved in the browser.

{# ── Configuration (read-only · settings.py) ─────────────────── #}

Data Retention

How long recorded requests are kept. Read-only — configured in settings.py.

{% if retention.mode == 'count' %} Retention is count-based. To keep a rolling time window instead — e.g. the last 7 days — set SILKY_GARBAGE_COLLECT_MODE = 'time' and SILKY_MAX_RECORDED_TIME (minutes) in settings.py. {% else %} Retention can also be count-based, or both together. Adjust SILKY_GARBAGE_COLLECT_MODE ('count', 'time' or 'both') and SILKY_MAX_RECORDED_TIME in settings.py. {% endif %}
Mode
{{ retention.mode }} {% if retention.mode == 'count' %}— keep the newest N requests{% endif %} {% if retention.mode == 'time' %}— keep a rolling time window{% endif %} {% if retention.mode == 'both' %}— apply count cap and time window{% endif %}
{% if retention.shows_count %}
Max recorded requests
{{ retention.max_requests }} rows
{% endif %} {% if retention.shows_time %}
Max recorded time
{% if retention.max_time_label %}{{ retention.max_time_label }} ({{ retention.max_time }} min){% else %}not set — nothing is removed by age{% endif %}
{% endif %}
{# ── Danger zone ─────────────────────────────────────────────── #}

Data Management

Permanently delete Silk profiling data. This cannot be undone.

{% csrf_token %}
{% if msg %}
{{ msg|linebreaksbr }}
{% endif %}
{% endblock %}