Opened 14 years ago

Closed 14 years ago

#13323 closed (duplicate)

Load app by full name, not only label

Reported by: chtito Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It might be desirable to load apps not only by label, but also by full name. For instance, one could allow to type: manage.py reset django.contrib.admin. Currently this leads to an error.

Is it possible to have two apps with the same "labels", i.e., two apps with the same end names, like core.admin and management.admin?

More generally it would make sense to only mention apps by full path, i.e., django.contrib.admin instead of admin...

In the mean time, here is a patch to allow the management commands to work with the full path.

Attachments (2)

applabel.diff (589 bytes ) - added by chtito 14 years ago.
same_app_label_test.diff (3.3 KB ) - added by chtito 14 years ago.

Download all attachments as: .zip

Change History (4)

by chtito, 14 years ago

Attachment: applabel.diff added

comment:1 by Matt McClanahan, 14 years ago

You're probably looking for #3591.

by chtito, 14 years ago

Attachment: same_app_label_test.diff added

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: duplicate
Status: newclosed

No, it isn't possible to have two apps with the same name (at least, not without causing some interesting problems). Fixing this is the subject of ticket #3591.

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