Subcommands32 subcommands
django-admin help
Usage and help information for django-admin
django-admin changepassword
Change a user's password for django.contrib.auth
django-admin createsuperuser
Used to create a superuser
django-admin remove_stale_contenttypes
django-admin check
Checks the entire Django project for potential problems
django-admin compilemessages
Compiles .po files to .mo files for use with builtin gettext support
django-admin createcachetable
Creates the tables needed to use the SQL cache backend
django-admin dbshell
Runs the command-line client for specified database, or the default database
django-admin diffsettings
Displays differences between the current settings.py and Django's default settings
django-admin dumpdata
Output the contents of the database as a fixture of the given format (using each model's default manager unless --all is specified)
django-admin flush
Removes ALL DATA from the database, including data added during migrations
django-admin inspectdb
Introspects the database tables in the given database and outputs a Django
django-admin loaddata
Installs the named fixture(s) in the database
django-admin makemessages
Runs over the entire source tree of the current directory and pulls out all strings marked for translation. It creates (or updates) a message file in the conf/locale (in the django tree) or locale (for projects and applications) directory. You must run this command with one of either the --locale, --exclude, or --all options
django-admin makemigrations
Creates new migration(s) for apps
django-admin migrate
Updates database schema. Manages both apps with migrations and those without
django-admin sendtestemail
Sends a test email to the email addresses specified as arguments
django-admin shell
Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code
django-admin showmigrations
Shows all available migrations for the current project
django-admin sqlflush
Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed
django-admin sqlmigrate
Prints the SQL statements for the named migration
django-admin sqlsequencereset
Prints the SQL statements for resetting sequences for the given app name(s)
django-admin squashmigrations
Squashes an existing set of migrations (from first until specified) into a single new one
django-admin startapp
Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory
django-admin startproject
Creates a Django project directory structure for the given project name in the current directory or optionally in the given directory
django-admin test
Discover and run tests in the specified modules or the current directory
django-admin testserver
Runs a development server with data from the given fixture(s)
django-admin clearsessions
Can be run as a cronjob or directly to clean out expired sessions (only with the database backend at the moment)
django-admin collectstatic
Collect static files in a single location
django-admin findstatic
Finds the absolute paths for the given static file(s)
django-admin runserver
Starts a lightweight Web server for development and also serves static files