Universal Admin GitHub

An admin for your Django app's database

Django's admin is great once you write a ModelAdmin for each model. Universal Admin needs none: point it at your project's database and every table is there, read the way a person would read it.

Open the Django sample in your browserGet Universal Admin
A Django poll's choices, each showing its question's text

Run it

A new Django project keeps its SQLite database next to manage.py:

./universal-admin --db sqlite:./db.sqlite3
./universal-admin --db postgres://localhost/mysite

What it reads from a Django project

It seesIt does
A ForeignKey (question_id)A link that shows the question's text; the question's page gets a tab of its choices, with a count
auth_user.passwordHidden: never read, never written
django_migrations, django_session, django_content_type, django_admin_logHidden
Tables named app_model (polls_choice)Labelled "Polls choice"; one line of config renames it

Renaming a table and a column:

databases:
  db:
    tables:
      polls_choice:
        label: Choices
        columns:
          choice_text: {label: Choice}

Every guess is only a default. When one is wrong, universal-admin init writes a config file from your database, one line per column, and a line in it changes the guess. Every setting is in the README.

Next to your app in production

Run it beside your project with the database URL minus the password, so people log in with their own database accounts. Docker, systemd and HTTPS: Deploy.