﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23045	Failed to load management commands after freezing by cx_freeze	keelung.yang.shandong@…	nobody	"Since it just searching .py but not .pyc files in function of find_commands() in '''''django/core/management/!__init!__.py''''', but after freezing there is no .py files.

After changing this line from
{{{#!python
return [f[:-3] for f in os.listdir(command_dir) 
    if not f.startswith('_') and f.endswith('.py')]
}}}

to 
{{{#!python
return [f[:f.rindex('.')] for f in os.listdir(command_dir) 
    if not f.startswith('_') and (f.endswith('.py') or f.endswith('.pyc'))]
}}}


it works.

Same code in branch of stable/1.7.x"	Bug	closed	Core (Management commands)	dev	Normal	duplicate	management command freeze cx_freeze		Unreviewed	0	0	0	0	0	0
