Opened 12 years ago
Closed 12 years ago
#19048 closed Bug (duplicate)
[Management commands] Unknown commands on python packages application
Reported by: | Rémy Hubscher | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
We are using the python namespace package functionality for a django project.
__import__('pkg_resources').declare_namespace(__name__)
But the commands not in the project package (the one with manage.py) are not found by the manage.py commands.
Attachments (1)
Change History (4)
comment:1 by , 12 years ago
by , 12 years ago
Attachment: | django_core_management_find_management_module.patch added |
---|
Patch to look at all pkg_resources
Note:
See TracTickets
for help on using tickets.
It seams to come from this django.core.management.find_management_module which call imp.find_module('django_project')
This command, return the first pkg_module path and not all of them.