{% extends 'silk/base/base.html' %} {% load silk_assets %} {% load silk_filters %} {% block pagetitle %}Silky - Settings{% endblock %} {% block js %} {% endblock %} {% block data %}

Settings

Preferences are saved in this browser. Recording options come from your project's settings.py.

{% if msg %}
{{ msg }}
{% endif %} {% if risks %}
{{ risks|length }} setting{{ risks|length|pluralize:" needs,s need" }} attention: {% for r in risks %}{{ r.key }}{% if not forloop.last %}, {% endif %}{% endfor %}. Review
{% endif %}

Editor

Where “Open in editor” and traceback links go.

Path mapping

Running Django in Docker or a VM? Map the path in recorded tracebacks to your local checkout.

{% if sample_frame %}

Example: {{ sample_frame.file }}:{{ sample_frame.line }} opens

{% endif %}

Thresholds

What Silky colours amber and red, what the Slow filter on Requests means, and how often a query must repeat to count as N+1. Saved as cookies so the server can use them.

Appearance

ThemeSystem follows your operating system.
Accent colourStatus colours (2xx green, 5xx red) stay the same in every accent.
NavigationSidebar, or tabs along the top.
ChartsHidden collapses every chart to its title. Each chart also has its own Hide and Show.
Collapsed sidebarIcons only, more room for tables.

Recording

Read from settings.py. Change them there and restart the server.

{% for c in recording %}
{{ c.key }}{{ c.value }} {% if c.changed %}default {{ c.default }}{% else %}default{% endif %} {% if c.risk %}
{{ c.risk }}
{% endif %}
{% endfor %}

{% if retention.mode == 'count' %}Keeps the newest {{ retention.max_requests }} requests. {% elif retention.mode == 'time' %}Keeps {% if retention.max_time_label %}the last {{ retention.max_time_label }}{% else %}everything: no time window is set{% endif %}. {% else %}Keeps at most {{ retention.max_requests }} requests{% if retention.max_time_label %}, none older than {{ retention.max_time_label }}{% endif %}.{% endif %}

{% if recommended %}
{% endif %}

Data

{{ data.requests|num }}requests
{{ data.queries|num }}queries
{{ data.profiles }}profiles
{% if data.oldest %}{{ data.oldest|timesince }}{% else %}·{% endif %}oldest record
{% csrf_token %}
Run garbage collectionApply the retention policy now, as manage.py silk_request_garbage_collect does.
Clear profiling dataDeletes every profile, and profiler files when SILKY_DELETE_PROFILES is on.
Clear all recorded dataDeletes every request, query and profile. This can't be undone.
{% csrf_token %}

Clear all recorded data?

This deletes {{ data.requests|num }} requests and everything recorded with them. Type clear to confirm.

{% endblock %}