Startproject/app template documentation confusing
|Reported by:||Owned by:||domguard|
|Severity:||Normal||Keywords:||startproject startapp template|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
For 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 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 ConfigParser)?
~/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.
Change History (14)
comment:1 Changed 4 years ago by
|Component:||Documentation → Core (Management commands)|
|Owner:||changed from nobody to domguard|
|Patch needs improvement:||unset|
|Status:||new → assigned|
comment:6 Changed 4 years ago by
|Triage Stage:||Design decision needed → Someday/Maybe|
comment:7 Changed 4 years ago by
|Triage Stage:||Someday/Maybe → Design decision needed|
|Type:||New feature → Bug|
comment:9 Changed 4 years ago by
|Component:||Core (Management commands) → Documentation|
|Triage Stage:||Design decision needed → Accepted|