Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed django-admin startproject so that it doesn't copy .pyc files

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d75fde94a736a4df6a068289d2204c4cd0497613 1 parent 7aed83c
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/bin/
2  django/bin/
@@ -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('{{ %s_name }}' % app_or_project, name).replace('{{ %s_name }}' % other, other_name))
Please sign in to comment.
Something went wrong with that request. Please try again.