django-admin
Utility script for the Django Web framework
Subcommands
Name | Description |
---|---|
help | Usage and help information for django-admin |
changepassword | Change a user's password for django.contrib.auth |
createsuperuser | Used to create a superuser |
remove_stale_contenttypes | |
check | Checks the entire Django project for potential problems |
compilemessages | Compiles .po files to .mo files for use with builtin gettext support |
createcachetable | Creates the tables needed to use the SQL cache backend |
dbshell | Runs the command-line client for specified database, or the default database |
diffsettings | Displays differences between the current settings.py and Django's default settings |
dumpdata | Output the contents of the database as a fixture of the given format (using each model's default manager unless --all is specified) |
flush | Removes ALL DATA from the database, including data added during migrations |
inspectdb | Introspects the database tables in the given database and outputs a Django |
loaddata | Installs the named fixture(s) in the database |
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 |
makemigrations | Creates new migration(s) for apps |
migrate | Updates database schema. Manages both apps with migrations and those without |
sendtestemail | Sends a test email to the email addresses specified as arguments |
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 |
showmigrations | Shows all available migrations for the current project |
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 |
sqlmigrate | Prints the SQL statements for the named migration |
sqlsequencereset | Prints the SQL statements for resetting sequences for the given app name(s) |
squashmigrations | Squashes an existing set of migrations (from first until specified) into a single new one |
startapp | Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory |
startproject | Creates a Django project directory structure for the given project name in the current directory or optionally in the given directory |
test | Discover and run tests in the specified modules or the current directory |
testserver | Runs a development server with data from the given fixture(s) |
test_mail | |
clearsessions | Can be run as a cronjob or directly to clean out expired sessions (only with the database backend at the moment) |
collectstatic | Collect static files in a single location |
findstatic | Finds the absolute paths for the given static file(s) |
runserver | Starts a lightweight Web server for development and also serves static files |