{% extends "django_admin_shell/base.html" %} {% block content %}
Output ({{ output|length }}):
Python version : {{python_version}}
Clear history
{% for result in output reversed %}
{{ result.code }}
{{ result.out }}
{% endfor %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.code }} {% if form.code.errors %} {{ form.code.errors }} {% endif %}
Be careful, in production environment `admin shell` is highly dangerous.
Blocking command like input not work.
This code: os.system('vim') will run `vim` in background.
Ctrl + Enter : Run code
Ctrl + Up/Down : Load code from history
Tab : Indent = 4 spaces
{% endblock %}