#32309: Allow including hidden directories for startproject/startapp --template
-------------------------------------+-------------------------------------
Reporter: sage | Owner: sage
Type: New | Status: assigned
feature |
Component: Core | Version: master
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The `startproject`/`startapp` `--template` command
[https://github.com/django/django/blob/master/django/core/management/templates.py#L129
ignores hidden directories]. This makes it impossible to render the files
in "hidden" directories of a project/app template, even if the file names
are explicitly specified using `--name`. One common use case is to render
a GitHub Actions configuration inside the `.github` directory, which is
"hidden" because it starts with a dot (`.`). A workaround is to move the
files out of the hidden directories (or rename the directories) and moving
them back after the template is rendered.
I've written some possible approaches in the
[https://groups.google.com/u/1/g/django-
developers/c/7ixiIzn7DDg/m/QckEjbFCAwAJ mailing list discussion].
--
Ticket URL: <https://code.djangoproject.com/ticket/32309>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.cf25110dbc1a028a67691057554161b5%40djangoproject.com.