Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#715 closed enhancement (fixed)

Allow arguments to createsuperuser

Reported by: inerte@… Owned by: adrian
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 10 years ago by inerte@…

  • priority changed from normal to low
  • Type changed from defect to enhancement

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 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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