Opened 18 years ago

Closed 18 years ago

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

Description

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 by Dagur Páll Ammendrup, 18 years ago

Until then you just do this:

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

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

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

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