Opened 15 years ago
Closed 15 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)
Change History (4)
by , 15 years ago
Attachment: | applabel.diff added |
---|
comment:1 by , 15 years ago
by , 15 years ago
Attachment: | same_app_label_test.diff added |
---|
comment:2 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
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.
You're probably looking for #3591.