mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #17042 -- Extended startproject and startapp management commands to better handle custom app and project templates. Many thanks to Preston Holmes for his initial patch and Alex Gaynor, Carl Meyer, Donald Stufft, Jacob Kaplan-Moss and Julien Phalip for code reviewing.
* Added ability to pass the project or app directory path as the second argument * Added ``--template`` option for specifying custom project and app templates * Cleaned up admin_scripts tests a little while I was there git-svn-id: http://code.djangoproject.com/svn/django/trunk@17246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -99,8 +99,7 @@ Prints the DROP TABLE SQL statements for the given app name(s).
|
||||
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.
|
||||
Prints the SQL statements that would be executed for the "flush" command.
|
||||
.TP
|
||||
.BI "sqlindexes [" "appname ..." "]"
|
||||
Prints the CREATE INDEX SQL statements for the given model module name(s).
|
||||
@@ -116,13 +115,13 @@ name(s).
|
||||
Prints the SQL statements for resetting PostgreSQL sequences for the
|
||||
given app name(s).
|
||||
.TP
|
||||
.BI "startapp [" "appname" "]"
|
||||
.BI "startapp [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "appname" "] [" "destination" "]"
|
||||
Creates a Django app directory structure for the given app name in
|
||||
the current directory.
|
||||
the current directory or the optional destination.
|
||||
.TP
|
||||
.BI "startproject [" "projectname" "]"
|
||||
.BI "startproject [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "projectname" "] [" "destination" "]"
|
||||
Creates a Django project directory structure for the given project name
|
||||
in the current directory.
|
||||
in the current directory or the optional destination.
|
||||
.TP
|
||||
.BI syncdb
|
||||
Creates the database tables for all apps in INSTALLED_APPS whose tables
|
||||
@@ -194,7 +193,7 @@ The locale to process when using makemessages or compilemessages.
|
||||
The domain of the message files (default: "django") when using makemessages.
|
||||
.TP
|
||||
.I \-e, \-\-extension=EXTENSION
|
||||
The file extension(s) to examine (default: ".html", separate multiple
|
||||
The file extension(s) to examine (separate multiple
|
||||
extensions with commas, or use -e multiple times).
|
||||
.TP
|
||||
.I \-s, \-\-symlinks
|
||||
@@ -214,6 +213,9 @@ Don't break long message lines into several lines.
|
||||
.I \-a, \-\-all
|
||||
Process all available locales when using makemessages..SH "ENVIRONMENT"
|
||||
.TP
|
||||
.I \-a, \-\-template=PATH_OR_URL
|
||||
The file or directory path or URL to load the project and app templates from.
|
||||
.TP
|
||||
.I DJANGO_SETTINGS_MODULE
|
||||
In the absence of the
|
||||
.BI \-\-settings
|
||||
|
||||
Reference in New Issue
Block a user