Opened 16 years ago

Closed 16 years ago

#9021 closed (duplicate)

manage.py startapp should create an "default" admin.py file

Reported by: Oliver Andrich Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Please look at this ticket as a polite feature request. I have been using the SVN version for some time, but in all projects I started after the newformsadmin merge, I made the same mistake - I added a admin.site.register(SomeClassName) to the models.py, which cause issues with manage.py shell and so on. I personally appreciate the AlreadyRegistered exception.

But as all Django users will use the automatic admin area, it would be a got practice to create a dummy admin.py file with the startapp command. I hope, this is understandable and might lower the learning curve for beginners and people like, whom are upgrading to 1.0.

Change History (1)

comment:1 by julian24, 16 years ago

Resolution: duplicate
Status: newclosed

duplicate of #8173

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