#1658: db.models.base.ModelBase.__new__ fails to deduce app_label with model
packages
------------------------------+---------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian Type: defect | Status: reopened Priority: high | Milestone: Component: Core framework | Version: SVN Severity: major | Resolution: Keywords: egg, distutils | ------------------------------+---------------------------------------------
Changes (by [EMAIL PROTECTED]):

 * keywords:  => egg, distutils

Comment:

maybe its a good idea to use pkg_resources here.
pkg_resources.resource_string and pkg_resouces.Requirement
may be used to 'deduce' the package location.  Is it
possible to distribute packages (django projects or apps)
in Eggs format ?

Example:
{{{
import pkg_resources
_app_label = pkg_resources.resource_string(module_path, module)
...
}}}

--
Ticket URL: <http://code.djangoproject.org/ticket/1658#comment:>
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to