Opened 16 years ago
Closed 12 years ago
#8173 closed New feature (wontfix)
manage.py startapp should create admin.py file
Reported by: | julian24 | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Someday/Maybe | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be very useful if manage.py and django-admin.py create the file admin.py
. It should contain something like this:
from django.contrib import admin from <app_name>.models import * # Register your models here
Maybe it's possible to do this with a condition that checks whether 'django.contrib.admin' is in the INSTALLED_APPS
of the project.
Change History (7)
comment:1 by , 16 years ago
milestone: | → post-1.0 |
---|---|
Triage Stage: | Unreviewed → Someday/Maybe |
comment:2 by , 16 years ago
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:7 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
You can now use a custom app templates for this.
Note:
See TracTickets
for help on using tickets.
admin is not in INSTALLED_APPS by default, so admin.py would not get created. And since it's in contrib, creating admin.py all the time does not make sense IMO.