#715 closed enhancement (fixed)
Allow arguments to createsuperuser
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | |
| Severity: | minor | Keywords: | createsuperuser |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
While developing sometimes I need to change some models, and django-admin.py install app complains about already created tables. Since Django does some magic depending on the meta.*Field() I choose, I don't want to mess with ALTER TABLES and end with a wrong database schema.
So I've chained some commands to facilitate starting (almost) clean:
django-admin.py init & django-admin.py install admin & django-admin.py install myapp & django-admin.py createsuperuser
To speed up things, allow createsuperuser to accept three arguments. This is what I would like to do:
django-admin.py init & django-admin.py install admin & django-admin.py install myapp & django-admin.py createsuperuser username email password
A minor feature, but while trying to get the models properly done, typing the admin login information is what slows me down more :)
Change History (2)
comment:1 by , 20 years ago
| priority: | normal → low |
|---|---|
| Type: | defect → enhancement |
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Sorry, the Type <select> wasn't grouped on the form with the other options and I submitted the ticket as "defect" while it's an "enhancement"...