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)

comment:1 by Mariusz Felisiak, 5 years ago

Can you describe your use case? I'm not sure why you need to keep undesired files in project templates.

comment:2 by Mariusz Felisiak, 5 years ago

Component: UncategorizedCore (Management commands)
Resolution: needsinfo
Status: newclosed
Type: UncategorizedNew feature
Version: 3.0master

in reply to:  1 ; comment:3 by Jourdan Rodrigues, 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 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

Last edited 5 years ago by Jourdan Rodrigues (previous) (diff)

comment:4 by Jourdan Rodrigues, 5 years ago

Resolution: needsinfo
Status: closednew

in reply to:  3 comment:5 by Mariusz Felisiak, 5 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top