|
1 | 1 | .\" Man page generated from reStructuredText.
|
2 | 2 | .
|
3 |
| -.TH "DJANGO-ADMIN" "1" "January 17, 2017" "1.11" "Django" |
| 3 | +.TH "DJANGO-ADMIN" "1" "April 04, 2017" "1.11" "Django" |
4 | 4 | .SH NAME
|
5 | 5 | django-admin \- Utility script for the Django Web framework
|
6 | 6 | .
|
@@ -931,6 +931,9 @@ the migrations documentation\&.
|
931 | 931 | Providing one or more app names as arguments will limit the migrations created
|
932 | 932 | to the app(s) specified and any dependencies needed (the table at the other end
|
933 | 933 | of a \fBForeignKey\fP, for example).
|
| 934 | +.sp |
| 935 | +To add migrations to an app that doesn\(aqt have a \fBmigrations\fP directory, run |
| 936 | +\fBmakemigrations\fP with the app\(aqs \fBapp_label\fP\&. |
934 | 937 | .INDENT 0.0
|
935 | 938 | .TP
|
936 | 939 | .B \-\-noinput, \-\-no\-input
|
@@ -2160,7 +2163,7 @@ django\-admin migrate \-\-traceback
|
2160 | 2163 | .UNINDENT
|
2161 | 2164 | .INDENT 0.0
|
2162 | 2165 | .TP
|
2163 |
| -.B \-\-verbosity {0,1,2,3}, \-\-v {0,1,2,3} |
| 2166 | +.B \-\-verbosity {0,1,2,3}, \-v {0,1,2,3} |
2164 | 2167 | .UNINDENT
|
2165 | 2168 | .sp
|
2166 | 2169 | Specifies the amount of notification and debug information that a command
|
@@ -2452,6 +2455,13 @@ management.call_command(\(aqdumpdata\(aq, use_natural_foreign_keys=True)
|
2452 | 2455 | .UNINDENT
|
2453 | 2456 | .UNINDENT
|
2454 | 2457 | .sp
|
| 2458 | +Some command options have different names when using \fBcall_command()\fP instead |
| 2459 | +of \fBdjango\-admin\fP or \fBmanage.py\fP\&. For example, \fBdjango\-admin |
| 2460 | +createsuperuser \-\-no\-input\fP translates to \fBcall_command(\(aqcreatesuperuser\(aq, |
| 2461 | +interactive=False)\fP\&. To find what keyword argument name to use for |
| 2462 | +\fBcall_command()\fP, check the command\(aqs source code for the \fBdest\fP argument |
| 2463 | +passed to \fBparser.add_argument()\fP\&. |
| 2464 | +.sp |
2455 | 2465 | Command options which take multiple options are passed a list:
|
2456 | 2466 | .INDENT 0.0
|
2457 | 2467 | .INDENT 3.5
|
|
0 commit comments