{% endif %}
{% if use_ssl and secure_proxy_ssl_header %}
{% trans 'Secure proxy SSL HTTP header: ' %}{{ secure_proxy_ssl_header.0|upper }} =
{% if secure_proxy_ssl_header.2 %}{% django_icon 'check' %}{{ secure_proxy_ssl_header.1 }}
{% elif secure_proxy_ssl_header.1 %}{% django_icon 'warning' %}{{ secure_proxy_ssl_header.1 }}
{% else %}{% django_icon 'remove' %} {% trans 'empty header' %}
{% trans 'Please ensure that a HTTPS access is available and that the webserver provides the right header (without the HTTP prefix).' %}
{% endif %}
{% trans 'Server names allowed to POST requests: ' %}{{ allowed_hosts|join:', ' }}
{% trans 'Requested server name:' %}
{% if allowed_host %}{% django_icon 'check' %}{% else %}{% django_icon 'warning' %}{% endif %}
{% if request_host %}{{ request_host }}{% else %}empty{% endif %}
{% trans 'Configuration server name:' %}
{% if server_name_valid %}{% django_icon 'check' %}{% else %}{% django_icon 'warning' %}{% endif %}
{{ server_name }}
{% if request_site %}
{% trans 'Request site (from the CurrentSiteMiddleware middleware):' %}{{ request_site }}
{% endif %}
{% trans 'Redis-based cache:' %}
{% if cache_redis and not debug %}{% django_icon 'check' %}
{% elif not cache_redis %}{% django_icon 'remove' %} {% trans 'you should install "django-redis" to cache your pages in Redis.' %}
{% else %}{% django_icon 'remove' %} {% trans 'you must deactivate the DEBUG mode to activate the cache.' %}{% endif %}
{% trans 'Redis-based sessions:' %}
{% if session_redis %}{% django_icon 'check' %}
{% else %}{% django_icon 'remove' %} {% trans 'you should install "django-redis-sessions" to store your sessions.' %}{% endif %}
{% trans 'Config files: ' %}
{% for provider in settings_providers %}
{% if provider.is_valid %}{% django_icon "check" %}{% else %}{% django_icon "remove" %}{% endif %} {{ provider }}{% if not provider.is_valid %}{% trans ': not found' %}{% else %}{% trans ': loaded' %}{% endif %}{% endfor %}