{% extends 'devtools/base.html' %} {% block title %}Home - DevTools{% endblock %} {% block content %}

Django DevTools

Active development mode

{{ total_apps }}

Applications

{{ total_models }}

Models

Secure

DEBUG

Current mode

Quick actions

Console Python/SQL

Execute Python code or SQL queries in real-time

Open the console
Explore data

Browse the content of your database tables

Explore
Database schema

Visualize the structure of your database

View schema

Django models available

{% if models_data %}
{% for app in models_data %}

{% for model in app.models %}
{{ model.verbose_name }}

Table: {{ model.table_name }}
Records: {{ model.count }}
Fields: {{ model.fields|length }}

View data
{% endfor %}
{% endfor %}
{% else %}
No Django model found.
{% endif %}
Security warning

These development tools are only available in DEBUG mode and require superuser privileges. They should never be enabled in production.

{% endblock %}