{% load static %} {% load i18n %} Tandoor

{% trans 'System' %}

{% blocktrans %} Tandoor Recipes is an open source free software application. It can be found on GitHub. Changelogs can be found here. {% endblocktrans %}

{% trans 'System Information' %}

{% if version_info %}
{% for v in version_info %}
{{ v.name }} ({{ v.branch }}) {% if v.tag %}- {{ v.tag }}{% endif %}
{{ v.version }}
Website {% if v.commit_link %} - Commit {% endif %}
{% endfor %}
{% else %} {% blocktrans %} You need to execute version.py in your update script to generate version information (done automatically in docker). {% endblocktrans %} {% endif %}

{% trans 'Plugins' %}

Clone the plugin using git into the recipe/plugin/ folder (Docker mount /opt/recipe/recipes/plugins to the host system and clone into it). {% for p in plugins %} {% endfor %}
{{ p.name }}
{{ p.base_path }}
Git Pull

{% trans 'Media Serving' %} {% if gunicorn_media %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if gunicorn_media %} {% blocktrans %}Serving media files directly using gunicorn/python is not recommend! Please follow the steps described here to update your installation. {% endblocktrans %} {% else %} {% trans 'Everything is fine!' %} {% endif %}

{% trans 'Secret Key' %} {% if secret_key %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if secret_key %} {% blocktrans %} You do not have a SECRET_KEY configured in your .env file. Django defaulted to the standard key provided with the installation which is publicly know and insecure! Please set SECRET_KEY int the .env configuration file. {% endblocktrans %} {% else %} {% trans 'Everything is fine!' %} {% endif %}

{% trans 'Debug Mode' %} {% if debug %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if debug %} {% blocktrans %} This application is still running in debug mode. This is most likely not needed. Turn of debug mode by setting DEBUG=0 int the .env configuration file. {% endblocktrans %} {% else %} {% trans 'Everything is fine!' %} {% endif %}

{% trans 'Allowed Hosts' %} {% if '*' in allowed_hosts %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if debug %} {% blocktrans %} Your allowed hosts are configured to allow every host. This might be ok in some setups but should be avoided. Please see the docs about this. {% endblocktrans %} {% else %} {% trans 'Everything is fine!' %} {% endif %}

{% trans 'Database' %} {% if postgres_status == 'warning' %} {% trans 'Info' %} {% elif postgres_status == 'danger' %} {% trans 'Warning' %} {% else %} {% trans 'Ok' %} {% endif %}

{{ postgres_message }}

{% trans 'Migrations' %} {% if missing_migration %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% blocktrans %} Migrations should never fail! Failed migrations will likely cause major parts of the app to not function correctly. If a migration fails make sure you are on the latest version and if so please post the migration log and the overview below in a GitHub issue. {% endblocktrans %}

{% for key,value in migration_info.items %} {% for u in value.unapplied_migrations %} {% endfor %} {% endfor %}
App {% trans 'Migrations' %}
{{ value.app }} {{ value.applied_migrations|length }} / {{ value.total }}
{{ u }}
{#

#} {# {% trans 'Orphaned Files' %}#} {##} {# #} {# {% if orphans|length == 0 %}{% trans 'Success' %}#} {# {% elif orphans|length <= 25 %}{% trans 'Warning' %}#} {# {% else %}{% trans 'Danger' %}#} {# {% endif %}#} {# #} {#

#} {# {% if orphans|length == 0 %}#} {# {% trans 'Everything is fine!' %}#} {# {% else %}#} {# {% blocktrans with orphan_count=orphans|length %}#} {# There are currently {{ orphan_count }} orphaned files.#} {# {% endblocktrans %}#} {#
#} {# #} {# #} {# {% endif %}#} {# #} {% if api_space_stats %}

API Stats

Space Stats
{% for r in api_space_stats %} {% for c in r %} {% endfor %} {% endfor %}
{{ c }}
Endpoint Stats
{% for r in api_stats %} {% for c in r %} {% endfor %} {% endfor %}
{{ c }}
{% endif %}

Cache Test

On first load this should be None, on second load it should be the time of the first load. Expiration is set to 10 seconds after that it should be None again.
{% if cache_response %} Cache entry from {{ cache_response|date:" d m Y H:i:s" }} {% else %} No cache entry before load {% endif %}

Debug



{% csrf_token %}