Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #30 -- django-admin startproject and startapp now ignore direct…

…ories starting with a dot

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2fb6c3b845967f8c22baeedf4038c3e488746d26 1 parent 3c0ee70
Adrian Holovaty authored July 14, 2005

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  django/bin/django-admin.py
3  django/bin/django-admin.py
@@ -314,6 +314,9 @@ def _start_helper(app_or_project, name, directory, other_name=''):
314 314
         relative_dir = d[len(template_dir)+1:].replace('%s_name' % app_or_project, name)
315 315
         if relative_dir:
316 316
             os.mkdir(os.path.join(top_dir, relative_dir))
  317
+        for i, subdir in enumerate(subdirs):
  318
+            if subdir.startswith('.'):
  319
+                del subdirs[i]
317 320
         for f in files:
318 321
             fp_old = open(os.path.join(d, f), 'r')
319 322
             fp_new = open(os.path.join(top_dir, relative_dir, f.replace('%s_name' % app_or_project, name)), 'w')

0 notes on commit 2fb6c3b

Please sign in to comment.
Something went wrong with that request. Please try again.