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

Debug



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