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)

Screenshot 2026-02-04 at 7.20.22 PM.png (119.4 KB ) - added by Jabir 4 weeks ago.

Download all attachments as: .zip

Change History (3)

comment:1 by ar3ph, 4 weeks ago

Maybe don't call your app just app? I don't know any solutions here.

comment:2 by Clifford Gama, 4 weeks ago

Resolution: invalid
Status: newclosed

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.
Back to Top