Django

Code

Ticket #715 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

Allow arguments to createsuperuser

Reported by: inerte@gmail.com Assigned to: adrian
Milestone: Component: django-admin.py
Version: Keywords: createsuperuser
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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 :)

Attachments

Change History

11/02/05 09:03:16 changed by inerte@gmail.com

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

11/27/05 20:57:39 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #715 (Allow arguments to createsuperuser)




Change Properties
Action