diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-04 13:01:30 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-04 13:01:30 +0000 |
| commit | faeee611d69717614424b6c3867cd5798ee25496 (patch) | |
| tree | b25f1fdf2e33a7d9c00c2c2be227ac3fc5f35ba6 /docs | |
| parent | bb6921ce888cfc981c4df8d5f079b0b7a4121ff6 (diff) | |
Fixed #17517 -- Added `--name` option to startproject and startapp management commands to be able to render files without a file extension. Thanks, Florian Apolloner.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/man/django-admin.1 | 9 | ||||
| -rw-r--r-- | docs/ref/django-admin.txt | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/docs/man/django-admin.1 b/docs/man/django-admin.1 index 2326e827cf..af710ff5fe 100644 --- a/docs/man/django-admin.1 +++ b/docs/man/django-admin.1 @@ -115,11 +115,11 @@ name(s). Prints the SQL statements for resetting PostgreSQL sequences for the given app name(s). .TP -.BI "startapp [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "appname" "] [" "destination" "]" +.BI "startapp [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "\-\-name=FILENAME" "] [" "appname" "] [" "destination" "]" Creates a Django app directory structure for the given app name in the current directory or the optional destination. .TP -.BI "startproject [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "projectname" "] [" "destination" "]" +.BI "startproject [" "\-\-template=PATH_OR_URL" "] [" "\-\-extension=EXTENSION" "] [" "\-\-name=FILENAME" "] [" "projectname" "] [" "destination" "]" Creates a Django project directory structure for the given project name in the current directory or the optional destination. .TP @@ -213,9 +213,12 @@ 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 +.I \-\-template=PATH_OR_URL The file or directory path or URL to load the project and app templates from. .TP +.I \-n, \-\-name=FILENAME +The name of an additional file to render when using app and project templates. +.TP .I DJANGO_SETTINGS_MODULE In the absence of the .BI \-\-settings diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 3010cd020c..aa514606e2 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -951,7 +951,8 @@ creating the ``myapp`` app:: When Django copies the app template files, it also renders the files whose extension matches those passed with the ``--extension`` option (``py`` -by default) using the template engine. The :class:`template context +by default) and those files which names are passed with the ``--name`` option +using the template engine. The :class:`template context <django.template.Context>` used is: - Any option passed to the startapp command @@ -1013,7 +1014,8 @@ when creating the ``myproject`` project:: When Django copies the project template files, it will also render the files whose extension matches those passed with the ``--extension`` option (``py`` -by default) using the template engine. The :class:`template context +by default) and those files which names are passed with the ``--name`` option +using the template engine. The :class:`template context <django.template.Context>` used is: - Any option passed to the startproject command |
