Django

Code

Ticket #11621: Django-ignore-pyo-and-jython-classfile.diff

File Django-ignore-pyo-and-jython-classfile.diff, 0.6 kB (added by fwierzbicki, 8 months ago)

Turn Steve Milner's second idea into a patch, as it helps Jython too

  • django/core/management/base.py

    old new  
    395395            if subdir.startswith('.'): 
    396396                del subdirs[i] 
    397397        for f in files: 
    398             if f.endswith('.pyc'): 
     398            if not f.endswith('.py'): 
    399399                continue 
    400400            path_old = os.path.join(d, f) 
    401401            path_new = os.path.join(top_dir, relative_dir, f.replace('%s_name' % app_or_project, name))