{% extends 'devtools/base.html' %} {% load devtools_extras %} {% block title %}Table Explorer - Django DevTools{% endblock %} {% block content %}

Table Explorer

Browse and explore your database tables with advanced filtering and pagination

{% if error %}

Error

{{ error }}

{% endif %} {% if model %}

Model Information

Application
{{ app_label }}
Model
{{ model_name }}
Table
{{ db_table }}
Total Records
{{ total_count }} record{{ total_count|pluralize }}
Records per page:
{% if total_pages > 1 %} {% endif %}
{% if data %}
{% for field in fields %} {% endfor %} {% for row in data %} {% for field in fields %} {% endfor %} {% endfor %}
{{ field.verbose_name }} {{ field.type }}
{% with value=row|lookup:field.name %} {% if value == 'NULL' %} NULL {% elif value|length > 50 %} {{ value|truncatechars:50 }} {% else %} {{ value }} {% endif %} {% endwith %}
{% else %}

No data found

This model doesn't contain any records yet.

{% endif %} {% else %}

Select a table to explore

Choose a table from your Django models to start exploring the data.

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}