summaryrefslogtreecommitdiff
path: root/django/core/management/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/management/templates.py')
-rw-r--r--django/core/management/templates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/templates.py b/django/core/management/templates.py
index aa65593e9c..d34a0deb7e 100644
--- a/django/core/management/templates.py
+++ b/django/core/management/templates.py
@@ -138,7 +138,7 @@ class TemplateCommand(BaseCommand):
os.mkdir(target_dir)
for dirname in dirs[:]:
- if dirname.startswith('.'):
+ if dirname.startswith('.') or dirname == '__pycache__':
dirs.remove(dirname)
for filename in files: