Opened 10 years ago

Closed 10 years ago

#21845 closed Cleanup/optimization (wontfix)

Deprecate .py suffix for django-admin.py

Reported by: Florian Apolloner Owned by: nobody
Component: Core (Management commands) Version: dev
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

Description

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

Change History (8)

comment:1 by Tim Graham, 10 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Carl Meyer, 10 years ago

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 by Marc Tamlyn, 10 years ago

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 by Claude Paroz, 10 years ago

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

comment:5 by Florian Apolloner, 10 years ago

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 by Berker Peksag, 10 years ago

Cc: berker.peksag@… added

comment:7 by Tim Graham, 10 years ago

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 by Tim Graham, 10 years ago

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