Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#715 closed enhancement (fixed)

Allow arguments to createsuperuser

Reported by: inerte@… 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 inerte@…, 19 years ago

priority: normallow
Type: defectenhancement

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"...

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [1474]) Fixed #798 and #715 -- Added optional arguments to createsuperuser, for each use in shell scripts. Thanks for the patch, bjorn@…

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