For app/project 
templates<https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-option---template>I
 found the docs a little misleading when they say 'Any 
option passed to the startapp command' will be added to the context. This 
got me thinking 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 
source<https://github.com/django/django/blob/master/django/core/management/templates.py>
 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 
ConfigParser)?

e.g.

bp-options.conf:

[options]
coffee
compass
css_dir=sass
js_dir=coffee

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/MZhSq2bv90sJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to