#2438: django.db.models get_apps() return different results according to the
server used
-------------------------------------------------+--------------------------
   Reporter:  kilian <[EMAIL PROTECTED]>  |                Owner:  mtredinnick  
  
     Status:  reopened                           |            Component:  Admin 
interface
    Version:  SVN                                |           Resolution:        
         
   Keywords:                                     |                Stage:  
Accepted       
  Has_patch:  0                                  |           Needs_docs:  0     
         
Needs_tests:  0                                  |   Needs_better_patch:  0     
         
-------------------------------------------------+--------------------------
Changes (by [EMAIL PROTECTED]):

  * status:  closed => reopened
  * version:  => SVN
  * resolution:  fixed =>

Comment:

 I've been hitting a problem with {{{loading.py}}} the last week or so, in
 the same vein as this thread.  One app doesn't return in {{{get_apps()}}},
 and it's because of the {{{hasattr(mod, "models")}}} check in
 {{{load_app()}}}.  It started happening after I added a particular model
 the file, but I've tried removing it and the admin still leaves out the
 app (it's a clean deploy, so no pyc is left around).  I've added a
 {{{getattr()}}} in {{{load_app()}}} to see what exactly is failing, but it
 only gives me an {{{ImportError}}}, which is what I already knew.
 
 Works fine with {{{runserver}}}, but not with mod_python 3.3.1/Python
 2.4.4 or 2.5.1.  I'm at version 6023 of django/trunk.
 The models file is at http://draines.com/tmp/foo-models.py.txt.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2438#comment:11>
Django Code <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