#11147: manage.py doesn't work with settings directory in pydev
--------------------------------------+-------------------------------------
Reporter: Leo | Owner: nobody
Status: closed | Milestone: 1.1
Component: django-admin.py | Version: SVN
Resolution: invalid | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by kmtracey):
Leo, I don't understand why you can't just put an `__init__.py` in the
`src` directory? Fine, so Pydev doesn't do it automagically but it's easy
enough to add one. Then everything works. I also don't see that this
structure is mandated by Pydev -- you do not have to use the Eclipse/Pydev
default `src` directory structure, it's just the default. You can easily
override and use your own source tree structure. But given that you want
to use that structure, what's the problem with putting an `__init__.py`
file in the root?
`__init__.py` wasn't needed in the root when you used a settings directory
prior to r10751 because the code was incorrectly figuring the 'project'
dir WAS the settings dir. And things like `startapp` would create
subdirectories in the settings dir, instead of the root project dir. Now
the project dir is being figured out correctly, it needs an `__init__.py`
file.
--
Ticket URL: <http://code.djangoproject.com/ticket/11147#comment:6>
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
-~----------~----~----~----~------~----~------~--~---