Fixed #14391 - Updated django-admin.1 man page to include newer commands. Thanks to laurentluce for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fc4ed4fafd
commit
941318fcee
|
@ -27,6 +27,9 @@ Compiles .po files to .mo files for use with builtin gettext support.
|
||||||
.BI "createcachetable [" "tablename" "]"
|
.BI "createcachetable [" "tablename" "]"
|
||||||
Creates the table needed to use the SQL cache backend
|
Creates the table needed to use the SQL cache backend
|
||||||
.TP
|
.TP
|
||||||
|
.BI "createsuperuser [" "\-\-username=USERNAME" "] [" "\-\-email=EMAIL" "]"
|
||||||
|
Creates a superuser account (a user who has all permissions).
|
||||||
|
.TP
|
||||||
.B dbshell
|
.B dbshell
|
||||||
Runs the command\-line client for the specified
|
Runs the command\-line client for the specified
|
||||||
.BI database ENGINE.
|
.BI database ENGINE.
|
||||||
|
@ -37,10 +40,21 @@ Displays differences between the current
|
||||||
and Django's default settings. Settings that don't appear in the defaults are
|
and Django's default settings. Settings that don't appear in the defaults are
|
||||||
followed by "###".
|
followed by "###".
|
||||||
.TP
|
.TP
|
||||||
|
.BI "dumpdata [" "\-\-all" "] [" "\-\-format=FMT" "] [" "\-\-indent=NUM" "] [" "\-\-natural=NATURAL" "] [" "appname appname appname.Model ..." "]"
|
||||||
|
Outputs to standard output all data in the database associated with the named
|
||||||
|
application(s).
|
||||||
|
.TP
|
||||||
|
.BI flush
|
||||||
|
Returns the database to the state it was in immediately after syncdb was
|
||||||
|
executed.
|
||||||
|
.TP
|
||||||
.B inspectdb
|
.B inspectdb
|
||||||
Introspects the database tables in the database specified in settings.py and outputs a Django
|
Introspects the database tables in the database specified in settings.py and outputs a Django
|
||||||
model module.
|
model module.
|
||||||
.TP
|
.TP
|
||||||
|
.BI "loaddata [" "fixture fixture ..." "]"
|
||||||
|
Searches for and loads the contents of the named fixture into the database.
|
||||||
|
.TP
|
||||||
.BI "install [" "appname ..." "]"
|
.BI "install [" "appname ..." "]"
|
||||||
Executes
|
Executes
|
||||||
.B sqlall
|
.B sqlall
|
||||||
|
@ -81,6 +95,13 @@ given model module name(s).
|
||||||
.BI "sqlclear [" "appname ..." "]"
|
.BI "sqlclear [" "appname ..." "]"
|
||||||
Prints the DROP TABLE SQL statements for the given app name(s).
|
Prints the DROP TABLE SQL statements for the given app name(s).
|
||||||
.TP
|
.TP
|
||||||
|
.BI "sqlcustom [" "appname ..." "]"
|
||||||
|
Prints the custom SQL statements for the given app name(s).
|
||||||
|
.TP
|
||||||
|
.BI "sqlflush [" "appname ..." "]"
|
||||||
|
Prints the SQL statements that would be executed for the "flush"
|
||||||
|
command.
|
||||||
|
.TP
|
||||||
.BI "sqlindexes [" "appname ..." "]"
|
.BI "sqlindexes [" "appname ..." "]"
|
||||||
Prints the CREATE INDEX SQL statements for the given model module name(s).
|
Prints the CREATE INDEX SQL statements for the given model module name(s).
|
||||||
.TP
|
.TP
|
||||||
|
@ -107,7 +128,11 @@ in the current directory.
|
||||||
Creates the database tables for all apps in INSTALLED_APPS whose tables
|
Creates the database tables for all apps in INSTALLED_APPS whose tables
|
||||||
haven't already been created.
|
haven't already been created.
|
||||||
.TP
|
.TP
|
||||||
.BI "test [" "\-\-verbosity" "] [" "appname ..." "]"
|
.BI "test [" "\-\-verbosity" "] [" "\-\-failfast" "] [" "appname ..." "]"
|
||||||
|
Runs the test suite for the specified applications, or the entire project if
|
||||||
|
no apps are specified
|
||||||
|
.TP
|
||||||
|
.BI "testserver [" "\-\-addrport=ipaddr|port" "] [" "fixture fixture ..." "]"
|
||||||
Runs the test suite for the specified applications, or the entire project if
|
Runs the test suite for the specified applications, or the entire project if
|
||||||
no apps are specified
|
no apps are specified
|
||||||
.TP
|
.TP
|
||||||
|
@ -145,6 +170,11 @@ Verbosity level: 0=minimal output, 1=normal output, 2=all output.
|
||||||
.I \-\-adminmedia=ADMIN_MEDIA_PATH
|
.I \-\-adminmedia=ADMIN_MEDIA_PATH
|
||||||
Specifies the directory from which to serve admin media when using the development server.
|
Specifies the directory from which to serve admin media when using the development server.
|
||||||
.TP
|
.TP
|
||||||
|
.I \-\-traceback
|
||||||
|
By default, django-admin.py will show a simple error message whenever an
|
||||||
|
error occurs. If you specify this option, django-admin.py will
|
||||||
|
output a full stack trace whenever an exception is raised.
|
||||||
|
.TP
|
||||||
.I \-l, \-\-locale=LOCALE
|
.I \-l, \-\-locale=LOCALE
|
||||||
The locale to process when using makemessages or compilemessages.
|
The locale to process when using makemessages or compilemessages.
|
||||||
.TP
|
.TP
|
||||||
|
@ -155,15 +185,15 @@ The domain of the message files (default: "django") when using makemessages.
|
||||||
The file extension(s) to examine (default: ".html", separate multiple
|
The file extension(s) to examine (default: ".html", separate multiple
|
||||||
extensions with commas, or use -e multiple times).
|
extensions with commas, or use -e multiple times).
|
||||||
.TP
|
.TP
|
||||||
.I \-e, \-\-symlinks
|
.I \-s, \-\-symlinks
|
||||||
Follows symlinks to directories when examining source code and templates for
|
Follows symlinks to directories when examining source code and templates for
|
||||||
translation strings.
|
translation strings.
|
||||||
.TP
|
.TP
|
||||||
.I \-e, \-\-ignore=PATTERN
|
.I \-i, \-\-ignore=PATTERN
|
||||||
Ignore files or directories matching this glob-style pattern. Use multiple
|
Ignore files or directories matching this glob-style pattern. Use multiple
|
||||||
times to ignore more.
|
times to ignore more.
|
||||||
.TP
|
.TP
|
||||||
.I \-e, \-\-no\-default\-ignore
|
.I \-\-no\-default\-ignore
|
||||||
Don't ignore the common private glob-style patterns 'CVS', '.*' and '*~'.
|
Don't ignore the common private glob-style patterns 'CVS', '.*' and '*~'.
|
||||||
.TP
|
.TP
|
||||||
.I \-a, \-\-all
|
.I \-a, \-\-all
|
||||||
|
@ -174,6 +204,10 @@ In the absence of the
|
||||||
.BI \-\-settings
|
.BI \-\-settings
|
||||||
option, this environment variable defines the settings module to be read.
|
option, this environment variable defines the settings module to be read.
|
||||||
It should be in Python-import form, e.g. "myproject.settings".
|
It should be in Python-import form, e.g. "myproject.settings".
|
||||||
|
.I \-\-database=DB
|
||||||
|
Used to specify the database on which a command will operate. If not
|
||||||
|
specified, this option will default to an alias of "default".
|
||||||
|
.TP
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
Full descriptions of all these options, with examples, as well as documentation
|
Full descriptions of all these options, with examples, as well as documentation
|
||||||
|
|
Loading…
Reference in New Issue