Add django-admin startapp template #3358
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
django-admin has a --template flag that lets you specify a directory to
base new apps off of. I've added a
startapp_template
directory to thetop level directory, updated the post gen hook to remove any files that
may not be needed, and updated the documentation for this new process.
Checklist:
tests/test_cookiecutter_generation.py
is updated accordingly (especially if adding or updating a template option)Rationale
This lets people semi-automatically create new apps without doing a lot of manual file moving and editing.
Fix #1876
Fix #1725
Fix #1505
Fix #881