Ticket #14145: minor-django-bug.diff

File minor-django-bug.diff, 735 bytes (added by marbu, 14 years ago)
  • django/core/management/base.py

     
    394394        relative_dir = d[len(template_dir)+1:].replace('%s_name' % app_or_project, name)
    395395        if relative_dir:
    396396            os.mkdir(os.path.join(top_dir, relative_dir))
    397         for i, subdir in enumerate(subdirs):
     397        for subdir in subdirs[:]:
    398398            if subdir.startswith('.'):
    399                 del subdirs[i]
     399                subdirs.remove(subdir)
    400400        for f in files:
    401401            if not f.endswith('.py'):
    402402                # Ignore .pyc, .pyo, .py.class etc, as they cause various
Back to Top