#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 Leo):

 Thanks for all of the feedback. The workaround suggested by kmtracey is
 fine for now. From an more theoretical standpoint, its just a bandaid,
 since 'src' is already on the pythonpath and is not an importable package
 (/lib/site-packages wouldn't have an `__init__.py` either) but that's just
 a handwavy argument.

 jacob: It doesn't actually go up two directories. It assumes 'src' is the
 project name and attempts to import it (which doesn't work in the existing
 case since its a root pythonpath and not a package).

 What ramiro says makes a lot of sense here, since I'm not using a project
 I shouldn't expect manage.py to work - although it would be nice if it did
 :-)

 The one small qualm I have here is that if we assume a project layout,
 manage.py will always be in the project directory and that directory is
 available on the pythonpath since its the cwd when manage.py is run.
 There's probably use cases that I'm totally not aware of but from the ones
 I understand there's no need to explicitly import the project package.

 Regardless, I'm fine with either abandoning manage.py going forward (since
 we're not using projects) or putting the `__init__.py` files in for now.

 Thanks again for the comments.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11147#comment:7>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to