Django

Code

Ticket #1726 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

createsuperuser really missing in mr

Reported by: anonymous Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Attachments

Change History

04/30/06 06:38:43 changed by Dagur

Until then you just do this:

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

05/04/06 22:08:31 changed by adrian

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

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


Add/Change #1726 (createsuperuser really missing in mr)




Change Properties
Action