{% extends "admin/base_site.html" %} {% load i18n static %} {% load management_ui_tags %} {% block title %}{{ title }} | {{ site_title }}{% endblock %} {% block extrahead %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{{ command_app_label }} / {{ command_name }}

{% if command_help %}
{{ command_help }}
{% endif %}
{% csrf_token %} {% if form.errors %}

{% trans "Please correct the errors below." %}

{% endif %} {% if command_field_names %}
{% for field_name in command_field_names %} {% with field=form|get_item:field_name %}
{{ field.errors }}
{% if field.field.widget.input_type == 'checkbox' %} {{ field }} {% else %} {{ field }} {% endif %}
{% if field.help_text %}
{{ field.help_text }}
{% endif %}
{% endwith %} {% endfor %}
{% else %}

{% trans "This command has no specific arguments." %}

{% endif %} {% if base_command_field_names %}
{% trans "Django BaseCommand Options" %} {% trans "(verbosity, traceback, etc.)" %}
{% for field_name in base_command_field_names %} {% with field=form|get_item:field_name %}
{{ field.errors }}
{% if field.field.widget.input_type == 'checkbox' %} {{ field }} {% else %} {{ field }} {% endif %}
{% if field.help_text %}
{{ field.help_text }}
{% endif %}
{% endwith %} {% endfor %}
{% endif %}
{% if result %}

{% if result.success %} {% trans "Command Completed Successfully" %} {% else %} {% trans "Command Failed" %} {% endif %} ({{ result.duration_ms }}ms)

{% if result.stdout %}

{% trans "Output" %}

{{ result.stdout }}
{% endif %} {% if result.stderr %}

{% trans "Error Output" %}

{{ result.stderr }}
{% endif %} {% if result.error_message %}
{% trans "Error:" %} {{ result.error_message }}
{% endif %}
{% endif %} {% endblock %}