Hi everyone,

I've been playing around with the --template <goog_1032017543> option for 
django-admin 
startproject 
<https://github.com/django/django/blob/master/django/core/management/templates.py#L129>
 
lately, and I noticed that it ignores hidden directories 
<https://github.com/django/django/blob/master/django/core/management/templates.py#L129>
 
(those that start with period) and __pycache__.

I was trying to create a template that includes a GitHub Actions workflow, 
but I realized that it wasn't in the generated project. The files are 
stored in the .github/workflows directory, so it's ignored by Django. I 
don't know if this has been discussed before, but a quick search only led 
me to this StackOverflow question 
<https://stackoverflow.com/questions/28407029/django-admin-py-startproject-is-ignoring-hidden-files>
.

Do you think we should add an option to override this? I can think of some 
options:

   - Add something like --hidden-dirs to include hidden directories.
   - For files specified using --name, always include them even if they're 
   inside hidden directories, or maybe allow the option to accept directories.
   - Add something like --directory to specify hidden directories 
   explicitly.

I can create a ticket and write a patch for this if you support it. Thanks!

Regards,
Sage

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/22fce477-9273-49f6-868b-c1e6860f2e76n%40googlegroups.com.

Reply via email to