Opened 13 years ago

Closed 12 years ago

Last modified 12 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: UI/UX:


While developing sometimes I need to change some models, and 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: init & install admin & install myapp & createsuperuser

To speed up things, allow createsuperuser to accept three arguments. This is what I would like to do: init & install admin & install myapp & 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 Changed 13 years ago by inerte@…

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 Changed 12 years ago by Adrian Holovaty

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