Opened 4 years ago

Closed 4 years ago

#21845 closed Cleanup/optimization (wontfix)

Deprecate .py suffix for

Reported by: Florian Apolloner Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Normal Keywords:
Cc: berker.peksag@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


We need to find a nice way to deprecate Warnings probably won't work, we might wanna resort to "print(file=sys.stderr)". Docs also need updates :/

Change History (8)

comment:1 Changed 4 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by Carl Meyer

Is there some missing context to this ticket? Is it just the .py suffix we're deprecating, or the script itself? If the latter, how are we expecting people to run startproject?

comment:3 Changed 4 years ago by Marc Tamlyn

I believe it's the .py suffix. In order to make the script executable on windows, we're now using a setuptools entry point. This is however impossible with a .py suffix. (I think)

comment:4 Changed 4 years ago by Claude Paroz

Summary: Deprecate django-admin.pyDeprecate .py suffix for

comment:5 Changed 4 years ago by Florian Apolloner

Fwiw, we don't have to deprecate it and can just install both variants, if we think the deprecation isn't worth it -- eg to many programs relying on it.

comment:6 Changed 4 years ago by Berker Peksag

Cc: berker.peksag@… added

comment:7 Changed 4 years ago by Tim Graham

Severity: Release blockerNormal

Both variants are installed as of #21827. I tend to think deprecation may not be worth it as it doesn't seem like we gain very much besides perhaps reduced confusion from not having two ways to do the same thing). I'll leave the ticket open, but I'm unmarking it as a release blocker.

comment:8 Changed 4 years ago by Tim Graham

Resolution: wontfix
Status: newclosed

Doc updates were made in #23067. I'll close this for now until someone comes up with a good reason why we need to deprecate the .py variant.

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