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
--
Ticket URL: <https://code.djangoproject.com/ticket/23045>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
Duplicate of #14952
--
Ticket URL: <https://code.djangoproject.com/ticket/23045#comment:1>