Django

Code

Ticket #5614 (closed: fixed)

Opened 1 year ago

Last modified 4 months ago

Add createsuperuser management command to auth

Reported by: Collin Grady <cgrady@the-magi.us> Assigned to: nobody
Milestone: Component: Contrib apps
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Since we can now add custom commands through apps, auth could provide a createsuperuser command

Attachments

5614.patch (1.4 kB) - added by Collin Grady <cgrady@the-magi.us> on 09/26/07 16:38:06.
5614.2.patch (1.3 kB) - added by Collin Grady <cgrady@the-magi.us> on 11/09/07 18:22:09.
5614.3.patch (5.9 kB) - added by Collin Grady <cgrady@the-magi.us> on 01/19/08 21:40:34.
create_superuser.diff (10.7 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 01/20/08 09:50:39.
Refactored and fixed signals being registered twice in management/init.py
create_superuser.2.diff (13.4 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 01/20/08 09:53:50.
Forgot to svn add init.py
create_superuser.3.diff (13.5 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 01/20/08 14:00:18.
After seeing the discussion on django-developers made create_superuser.py backwards compatible
5614-docs.patch (1.2 kB) - added by programmerq on 05/22/08 22:04:51.
Docs for this handy patch
5614-checkin.patch (20.9 kB) - added by programmerq on 05/26/08 15:47:54.
combined patch-- with spelling errors fixed

Change History

09/26/07 16:38:06 changed by Collin Grady <cgrady@the-magi.us>

  • attachment 5614.patch added.

10/16/07 21:18:08 changed by SmileyChris

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests changed.
  • needs_docs changed.

I'm not that keen on letting users put the unhashed superuser password on their bash history. My suggestion is that the password is removed as an option, therefore requiring it to be prompted for.

11/09/07 18:22:09 changed by Collin Grady <cgrady@the-magi.us>

  • attachment 5614.2.patch added.

11/09/07 18:22:40 changed by Collin Grady <cgrady@the-magi.us>

Updated patch to drop the --password arg

12/02/07 14:31:27 changed by jacob

  • stage changed from Design decision needed to Ready for checkin.

01/01/08 23:35:58 changed by adrian

  • needs_docs set to 1.
  • stage changed from Ready for checkin to Accepted.

This is a nice addition, but it needs docs before we can check it in. Who wants to tackle them?

01/19/08 21:40:34 changed by Collin Grady <cgrady@the-magi.us>

  • attachment 5614.3.patch added.

01/20/08 09:50:39 changed by Øyvind Saltvik <oyvind@saltvik.no>

  • attachment create_superuser.diff added.

Refactored and fixed signals being registered twice in management/init.py

01/20/08 09:53:50 changed by Øyvind Saltvik <oyvind@saltvik.no>

  • attachment create_superuser.2.diff added.

Forgot to svn add init.py

01/20/08 14:00:18 changed by Øyvind Saltvik <oyvind@saltvik.no>

  • attachment create_superuser.3.diff added.

After seeing the discussion on django-developers made create_superuser.py backwards compatible

05/22/08 22:04:51 changed by programmerq

  • attachment 5614-docs.patch added.

Docs for this handy patch

05/22/08 22:06:25 changed by programmerq

  • needs_docs deleted.

Hello. I've written up the docs that reflect the changes.

I was able to merge create_superuser.3.diff with the current svn trunk without problems.

05/23/08 01:10:19 changed by SmileyChris

  • stage changed from Accepted to Ready for checkin.

programmerq: couple of typos (usermane, filesestem) so check those when you're documenting. Thanks for the update that the merge is still fine. I think we're ready to promote (but feel free to put a fixed doc patch up and perhaps combine with the actual code patch - it's easy then for the committer).

05/26/08 15:47:54 changed by programmerq

  • attachment 5614-checkin.patch added.

combined patch-- with spelling errors fixed

05/26/08 15:49:14 changed by programmerq

I am in fact a terrible speller, but not that bad. I must have been sleepy when I wrote those up. :)

I've fixed the errors, and looked over my changes again. It should be good to go!

06/07/08 23:53:23 changed by jacob

Be careful generating your patches, programerq: this one was generated in "reverse". Luckily it applies fine with a patch -R, but it confused the heck out of me first!

06/08/08 00:31:17 changed by jacob

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

(In [7590]) Fixed #5614: added 'manage.py createsuperuser'. Thanks, programmerq.


Add/Change #5614 (Add createsuperuser management command to auth)




Change Properties
Action