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)

django_core_management_find_management_module.patch (1.0 KB ) - added by Rémy Hubscher 12 years ago.
Patch to look at all pkg_resources

Download all attachments as: .zip

Change History (4)

comment:1 by Rémy Hubscher, 12 years ago

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.

comment:2 by Rémy Hubscher, 12 years ago

by Rémy Hubscher, 12 years ago

Patch to look at all pkg_resources

comment:3 by Claude Paroz, 12 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #8280

Note: See TracTickets for help on using tickets.
Back to Top