summaryrefslogtreecommitdiff
path: root/django/bin/django-admin.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-15 22:24:51 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-15 22:24:51 +0000
commitd75fde94a736a4df6a068289d2204c4cd0497613 (patch)
tree936e4b36d4ffcafde9e7d1d16b0ecafa450b1c9e /django/bin/django-admin.py
parent7aed83c85437f26c62175c99a30a2bf56992f505 (diff)
Changed django-admin startproject so that it doesn't copy .pyc files
git-svn-id: http://code.djangoproject.com/svn/django/trunk@79 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin/django-admin.py')
-rw-r--r--django/bin/django-admin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py
index 3bf3501d18..b6ed7d2095 100644
--- a/django/bin/django-admin.py
+++ b/django/bin/django-admin.py
@@ -318,6 +318,8 @@ def _start_helper(app_or_project, name, directory, other_name=''):
if subdir.startswith('.'):
del subdirs[i]
for f in files:
+ if f.endswith('.pyc'):
+ continue
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')
fp_new.write(fp_old.read().replace('{{ %s_name }}' % app_or_project, name).replace('{{ %s_name }}' % other, other_name))