All apps/django-admin

django-admin

django-admin

Django's command-line utility for administrative tasks.

Runs as django-admin|macOS, Linux, Windows|docs.djangoproject.com

Command form

ai-draft · 4 tasks · 16 fields

Common jobs: start a dev server, create and apply migrations, start a project. Global options such as --settings are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui django-admin

django-admin runserver

Run the development server
Run the development serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Address and port
string
Disable auto-reloader
--noreload
TasksEach one presets the form for one job
Serve on a port
addrportnoreload
ParametersOnly these flags are editable in the form
Address and port
string · positional 0
Disable auto-reloader
boolean
--noreload
Disable threading
boolean
--nothreading
Use IPv6
boolean
--ipv6-6

django-admin makemigrations

Create migrations
Create migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
App labels
string
Dry run
--dry-run
TasksEach one presets the form for one job
Preview migrations
app_labelsdry_run
ParametersOnly these flags are editable in the form
App labels
string · positional 0 · repeatable
Dry run
boolean
--dry-run
Migration name
string
--name-n
Create an empty migration
boolean
--empty
Fail if migrations are missing
boolean
--check

django-admin migrate

Apply migrations
Apply migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
App label
string
Show planned actions
--plan
TasksEach one presets the form for one job
Show the plan
app_labelplan
ParametersOnly these flags are editable in the form
App label
string · positional 0
Target migration (zero unapplies all)
string · positional 1
Show planned actions
boolean
--plan
Mark as run without running
boolean
--fake
Database
string
--database

django-admin startproject

Start a new project
Start a new projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name*
string
Destination directory
directory
TasksEach one presets the form for one job
Create a project
namedirectory
ParametersOnly these flags are editable in the form
Project name
string · positional 0
Destination directory
path · positional 1
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed django-admin against its version. A form that does not match your version is not offered.