Code

Ticket #14391: django_admin_man.diff

File django_admin_man.diff, 3.8 KB (added by laurentluce, 4 years ago)

update django-admin man page to match django-admin.txt

Line 
1Index: docs/man/django-admin.1
2===================================================================
3--- docs/man/django-admin.1     (revision 13984)
4+++ docs/man/django-admin.1     (working copy)
5@@ -27,6 +27,9 @@
6 .BI "createcachetable [" "tablename" "]"
7 Creates the table needed to use the SQL cache backend
8 .TP
9+.BI "createsuperuser [" "\-\-username=USERNAME" "] [" "\-\-email=EMAIL" "]"
10+Creates a superuser account (a user who has all permissions).
11+.TP
12 .B dbshell
13 Runs the command\-line client for the specified
14 .BI database ENGINE.
15@@ -37,10 +40,21 @@
16 and Django's default settings. Settings that don't appear in the defaults are
17 followed by "###".
18 .TP
19+.BI "dumpdata [" "\-\-all" "] [" "\-\-format=FMT" "] [" "\-\-indent=NUM" "] [" "\-\-natural=NATURAL" "] [" "appname appname appname.Model ..." "]"
20+Outputs to standard output all data in the database associated with the named
21+application(s).
22+.TP
23+.BI flush
24+Returns the database to the state it was in immediately after syncdb was
25+executed.
26+.TP
27 .B inspectdb
28 Introspects the database tables in the database specified in settings.py and outputs a Django
29 model module.
30 .TP
31+.BI "loaddata [" "fixture fixture ..." "]"
32+Searches for and loads the contents of the named fixture into the database.
33+.TP
34 .BI "install [" "appname ..." "]"
35 Executes
36 .B sqlall
37@@ -81,6 +95,13 @@
38 .BI "sqlclear [" "appname ..." "]"
39 Prints the DROP TABLE SQL statements for the given app name(s).
40 .TP
41+.BI "sqlcustom [" "appname ..." "]"
42+Prints the custom SQL statements for the given app name(s).
43+.TP
44+.BI "sqlflush [" "appname ..." "]"
45+Prints the SQL statements that would be executed for the "flush"
46+command.
47+.TP
48 .BI "sqlindexes [" "appname ..." "]"
49 Prints the CREATE INDEX SQL statements for the given model module name(s).
50 .TP
51@@ -107,10 +128,14 @@
52 Creates the database tables for all apps in INSTALLED_APPS whose tables
53 haven't already been created.
54 .TP
55-.BI "test [" "\-\-verbosity" "] [" "appname ..." "]"
56+.BI "test [" "\-\-verbosity" "] [" "\-\-failfast" "] [" "appname ..." "]"
57 Runs the test suite for the specified applications, or the entire project if
58 no apps are specified
59 .TP
60+.BI "testserver [" "\-\-addrport=ipaddr|port" "] [" "fixture fixture ..." "]"
61+Runs the test suite for the specified applications, or the entire project if
62+no apps are specified
63+.TP
64 .BI validate
65 Validates all installed models.
66 .SH "OPTIONS"
67@@ -145,6 +170,11 @@
68 .I \-\-adminmedia=ADMIN_MEDIA_PATH
69 Specifies the directory from which to serve admin media when using the development server.
70 .TP
71+.I \-\-traceback
72+By default, django-admin.py will show a simple error message whenever an
73+error occurs. If you specify this option, django-admin.py  will
74+output a full stack trace whenever an exception is raised.
75+.TP
76 .I \-l, \-\-locale=LOCALE
77 The locale to process when using makemessages or compilemessages.
78 .TP
79@@ -155,15 +185,15 @@
80 The file extension(s) to examine (default: ".html", separate multiple
81 extensions with commas, or use -e multiple times).
82 .TP
83-.I \-e, \-\-symlinks
84+.I \-s, \-\-symlinks
85 Follows symlinks to directories when examining source code and templates for
86 translation strings.
87 .TP
88-.I \-e, \-\-ignore=PATTERN
89+.I \-i, \-\-ignore=PATTERN
90 Ignore files or directories matching this glob-style pattern. Use multiple
91 times to ignore more.
92 .TP
93-.I \-e, \-\-no\-default\-ignore
94+.I \-\-no\-default\-ignore
95 Don't ignore the common private glob-style patterns 'CVS', '.*' and '*~'.
96 .TP
97 .I \-a, \-\-all
98@@ -174,6 +204,10 @@
99 .BI \-\-settings
100 option, this environment variable defines the settings module to be read.
101 It should be in Python-import form, e.g. "myproject.settings".
102+.I \-\-database=DB
103+Used to specify the database on which a command will operate. If not
104+specified, this option will default to an alias of "default".
105+.TP
106 
107 .SH "SEE ALSO"
108 Full descriptions of all these options, with examples, as well as documentation