﻿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
9789	compiled settings.py file can't be imported from Jython when using manage.py.	Frank Wierzbicki	nobody	"When running manage.py functions that depend on settings.py, Django errors out if the file has been compiled to settings$py.class in Jython.  For example, when I run:
{{{
jython mysite/manage.py syncdb
}}}
I get:
{{{
Error: Could not import settings 'mysite.settings$py' (Is it on sys.path? Does it have syntax errors?): No module named settings$py
}}}
I tracked this down to `django/core/management/__init__.py` where the .pyc is stripped from compiled CPython files with:

{{{
settings_name = os.path.splitext(settings_filename)[0]
}}}

which works great for .pyc files, but doesn't strip the $py from the Jython compiled files.  I'm attaching a simple patch."		closed	Core (Other)	1.0		fixed			Accepted	1	0	0	0	0	0
