Skip to content

Commit 2fb6c3b

Browse files
Fixed #30 -- django-admin startproject and startapp now ignore directories starting with a dot
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 3c0ee70 commit 2fb6c3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django/bin/django-admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ def _start_helper(app_or_project, name, directory, other_name=''):
314314
relative_dir = d[len(template_dir)+1:].replace('%s_name' % app_or_project, name)
315315
if relative_dir:
316316
os.mkdir(os.path.join(top_dir, relative_dir))
317+
for i, subdir in enumerate(subdirs):
318+
if subdir.startswith('.'):
319+
del subdirs[i]
317320
for f in files:
318321
fp_old = open(os.path.join(d, f), 'r')
319322
fp_new = open(os.path.join(top_dir, relative_dir, f.replace('%s_name' % app_or_project, name)), 'w')

0 commit comments

Comments
 (0)