#11147: manage.py doesn't work with settings directory in pydev
-----------------------------+----------------------------------------------
Reporter: Leo | Owner: nobody
Status: new | Milestone: 1.1
Component: django-admin.py | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
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).
--
Ticket URL: <http://code.djangoproject.com/ticket/11147>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---