Opened 3 months ago

Closed 3 months ago

#21827 closed Bug (fixed)

Regression in 1.7: django-admin misses .py suffix

Reported by: apollo13 Owned by: nobody
Component: Uncategorized Version: master
Severity: Release blocker Keywords:
Cc: apollo13 Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description moved to django-admin, we should either update the docs or change to:

diff --git a/ b/
index 2818037..e65155d 100644
--- a/
+++ b/
@@ -44,7 +44,7 @@ setup(
     entry_points={'console_scripts': [
-        'django-admin =',
+        ' =',

This works on linux and should also work on windows (should ;)). Technically I'd like django-admin more, but it's somewhat backwards incompatible.

Attachments (0)

Change History (8)

comment:1 Changed 3 months ago by aaugustin

I don't think we can change it outright. Keep it as is or implement a deprecation path.

comment:2 Changed 3 months ago by apollo13

My change only fixes it for linux, windows will install it as django-admin.exe -- damn :/

comment:3 Changed 3 months ago by anonymous

  • Summary changed from Doc update for django-admin vs to Regression in 1.7: django-admin misses .py suffix

comment:4 Changed 3 months ago by aaugustin

If we can't find a solution by 1.7 beta we'll have to revert that commit.

comment:5 Changed 3 months ago by Florian Apolloner <florian@…>

In 151dae2bea1dad9fa8f24ea8adcf58dbb1820aa8:

Changed django-admin back to Refs #21827

comment:6 Changed 3 months ago by apollo13

Worst case, I'll disable entrypoints for windows again and restore the old solution there…

comment:7 Changed 3 months ago by apollo13

I had an older pip version locally and am currently blocked by: -- but it seems that a normal install produces whereas only the wheel produces django-admin.exe. I'll figure out if that is a bug in pip and see that it gets fixed there (if I get my env running again)

comment:8 Changed 3 months ago by Florian Apolloner <florian@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 088cb711fe8c8bfb6af04ac7ef094817802c4256:

Fixed #21827 -- Install django-admin and

We need to figure out how to deprecate, but for now this
should do the trick.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.