{% extends "base.html" %} {% load static %} {% load i18n %} {% block title %}{% trans "Cookbook Setup" %}{% endblock %} {% block extra_head %} {{ form.media }} {% endblock %} {% block content %}

{% trans 'System' %}

{% blocktrans %} Django 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 '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 'Database' %} {% if postgres_status == 'warning' %} {% trans 'Info' %} {% elif postgres_status == 'danger'%} {% trans 'Warning' %} {% else %} {% trans 'Ok' %} {% endif %}

{{postgres_message}} {#

#} {# {% 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 %}

Debug



{% csrf_token %}
{% block script %} {% endblock script %} {% endblock %}