#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 , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Until then you just do this:
>>> from django.contrib.auth.create_superuser import createsuperuser >>> createsuperuser('someone','someone@somewhere.com','somepassword') Superuser created successfully.