adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 613553d

Fixed #30 -- django-admin startproject and startapp now ignore directories starting with a dot

  • Participants
  • Parent commits fd17898

Comments (0)

Files changed (1)

File django/bin/

         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')