diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py index fd2d96ad28..fefc20b9bd 100644 --- a/django/bin/django-admin.py +++ b/django/bin/django-admin.py @@ -314,6 +314,9 @@ def _start_helper(app_or_project, name, directory, other_name=''): relative_dir = d[len(template_dir)+1:].replace('%s_name' % app_or_project, name) if relative_dir: os.mkdir(os.path.join(top_dir, relative_dir)) + for i, subdir in enumerate(subdirs): + if subdir.startswith('.'): + del subdirs[i] for f in files: fp_old = open(os.path.join(d, f), 'r') fp_new = open(os.path.join(top_dir, relative_dir, f.replace('%s_name' % app_or_project, name)), 'w')