diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-14 01:32:23 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-14 01:32:23 +0000 |
| commit | 2fb6c3b845967f8c22baeedf4038c3e488746d26 (patch) | |
| tree | 75f45d305973b7a6c56898a0db246bec320c7656 /django/bin/django-admin.py | |
| parent | 3c0ee70e7c6b9e40cef611061f7756c80691ee76 (diff) | |
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
Diffstat (limited to 'django/bin/django-admin.py')
| -rw-r--r-- | django/bin/django-admin.py | 3 |
1 files changed, 3 insertions, 0 deletions
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') |
