Opened 4 weeks ago
Closed 4 weeks ago
#36902 closed Cleanup/optimization (invalid)
Names confusions
| Reported by: | Jabir | Owned by: | |
|---|---|---|---|
| Component: | Utilities | Version: | 6.0 |
| Severity: | Normal | Keywords: | class, module |
| Cc: | Jabir | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Class has same name as module can possibly create conflicts
Attachments (1)
Change History (3)
by , 4 weeks ago
| Attachment: | Screenshot 2026-02-04 at 7.20.22 PM.png added |
|---|
comment:1 by , 4 weeks ago
comment:2 by , 4 weeks ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
This is something you can solve by namespacing the import:
from django.apps import AppConfig as DjangoAppConfig
class AppConfig(DjangoAppConfig): ...
Closing ticket per https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
Note:
See TracTickets
for help on using tickets.
Maybe don't call your app just
app? I don't know any solutions here.