#2438: django.db.models get_apps() return different results according to the
server used
-----------------------------------------------+----------------------------
Reporter: kilian <[EMAIL PROTECTED]> | Owner: mtredinnick
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: Admin interface | Version:
Severity: normal | Resolution:
Keywords: |
-----------------------------------------------+----------------------------
Changes (by [EMAIL PROTECTED]):
* cc: [EMAIL PROTECTED] (added)
Comment:
I hit this exact same issue yesterday too when cutting over from django's
dev server to apache2/mod_python 3.2.8. I have an app that calls
get_model() and it wasn't working under mod_python.
The snippet below demonstrates it:
{{{
#!python
>>> from django.db.models.loading import get_model
>>> model = get_model('asset', 'Asset')
>>> repr(model)
'None'
>>> from nong.asset.models import Asset
>>> model = get_model('asset', 'Asset')
>>> repr(model)
"<class 'nong.asset.models.Asset'>"
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/2438>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---