#9323: INSTALLED_APPS * glob won't load apps with number in name ----------------------------+----------------------------------------------- Reporter: carljm | Owner: nobody Status: new | Milestone: Component: Core framework | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------+----------------------------------------------- The resolution of the "foo.*" glob in INSTALLED_APPS checks isalpha() on the name of each subdirectory before trying to import it. This is stricter than it should be, since Python package names may contain numbers anywhere except at the beginning. This leads to apps with numbers in the package name mysteriously being left out of INSTALLED_APPS.
The solution is to instead check {{{ d.isalnum() and d[0].isalpha() }}}, which more closely matches the requirements for Python package names. Patch (with test) attached. -- Ticket URL: <http://code.djangoproject.com/ticket/9323> 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 django-updates@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---