﻿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
11147	manage.py doesn't work with settings directory in pydev	Leo Shklovskii	nobody	"The fix for #9751 - r10751 - completely broken manage.py for our configuration (things are set up this way for pydev):
{{{
/src/
 |-- app1
 |   |-- __init__.py
 |   |-- models.py
 |-- app2
 |   |-- __init__.py
 |   |-- models.py
 |-- manage.py
 |-- settings
 |   |-- __init__.py
 |   |-- settings_dev.py
 |   |-- settings_prod.py
 `-- urls.py
}}}

I now get the following failure - it looks like django is trying to go up a directory too high:
{{{
Traceback (most recent call last):
  File ""C:\ws\fuzzy\EvoHeart2\src\manage.py"", line 12, in <module>
    execute_manager(settings)
  File ""C:\Python25\lib\site-packages\django\core\management\__init__.py"", line 360, in execute_manager
    setup_environ(settings_mod)
  File ""C:\Python25\lib\site-packages\django\core\management\__init__.py"", line 343, in setup_environ
    project_module = import_module(project_name)
  File ""C:\Python25\lib\site-packages\django\utils\importlib.py"", line 35, in import_module
    __import__(name)
ImportError: No module named src
}}}

PyDev doesn't put an `__init__.py` in the root src directory and it seems like there shouldn't be one there (it's a directory on the PYTHONPATH).
"		closed	Core (Management commands)	dev		invalid			Unreviewed	0	0	0	0	0	0
