#18277: Startproject/app template documentation confusing
------------------------------+--------------------------------------------
     Reporter:  sam@…         |      Owner:  nobody
         Type:  New feature   |     Status:  new
    Component:                |    Version:  1.4
  Documentation               |   Keywords:  startproject startapp template
     Severity:  Normal        |  Has patch:  0
 Triage Stage:  Unreviewed    |      UI/UX:  0
Easy pickings:  0             |
------------------------------+--------------------------------------------
 For [https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-
 option---template app/project templates] I found the docs a little
 misleading when they say 'Any option passed to the startapp command' will
 be added to the context. This lead me to believe I could add arbitrary
 options to the command and pass them in to the context, which would make
 for some highly configurable app/project boilerplates. But, from looking
 at the
 
[https://github.com/django/django/blob/master/django/core/management/templates.py
 source] I gather by 'any options' they meant any valid options for the
 startapp/project commands.

 Do you think it would be a cool feature to be able to pass any options or
 a file that defines additional context (maybe something consumable by
 [http://docs.python.org/library/configparser.html ConfigParser])?

 e.g.

 bp-options.cfg:

 [options]

 css_dir=sass

 js_dir=coffee

 ~/projects$ django-admin.py --template=/path/to/boilerplate
 --context=/path/to/bp-options.cfg myproject

 I would definitely be willing to give this a shot if it is deemed useful.

 Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18277>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to