Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1726 closed defect (fixed)

createsuperuser really missing in mr

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


after problems (see #1725) i issued sqlreset on all django apps. after that i did a syncdb and #1725 was gone. but my superuser was gone also. and syncdb did not ask me to create a new one.

i don't like this asking for parameters from console anyway which fails running commands in scripts and would really like to get this createsuperuser back... :D

Change History (2)

comment:1 Changed 12 years ago by Dagur Páll Ammendrup

Until then you just do this:

>>> from django.contrib.auth.create_superuser import createsuperuser
>>> createsuperuser('someone','','somepassword')
Superuser created successfully.

comment:2 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2841]) Fixed #1726 -- Made django/contrib/auth/ a command-line function, and added docs

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