Opened 5 years ago
Closed 5 years ago
#31627 closed New feature (invalid)
Could there be an "--exclude" option to "startproject/startapp"?
Reported by: | Jourdan Rodrigues | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I found that it could be done at this condition, with a new option to pass these files to be ignored.
I have the need to ignore a specific file on a project template I built, which is a .travis.yml
. Note that I'm not suggesting the same approach used for directories, which is to ignore the ones starting with a dot (I'd be damned with this).
Change History (5)
follow-up: 3 comment:1 by , 5 years ago
comment:2 by , 5 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
Type: | Uncategorized → New feature |
Version: | 3.0 → master |
follow-up: 5 comment:3 by , 5 years ago
Replying to felixxm:
Can you describe your use case? I'm not sure why you need to keep undesired files in project templates.
I placed my use case in the description: I have a .travis.yml
that's is meant to test the template, but it's not part of the template.
comment:4 by , 5 years ago
Resolution: | needsinfo |
---|---|
Status: | closed → new |
comment:5 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I have a
.travis.yml
that's is meant to test the template, but it's not part of the template.
You can check it out here: https://github.com/jourdanrodrigues/django-template/tree/django
Thanks for sharing. In such cases, you can move your template to a sub-directory and keep .travis.yml
in the root directory.
Can you describe your use case? I'm not sure why you need to keep undesired files in project templates.