#34542: Required fields allowed to be blank are not accepted non-interactively
using createsuperuser
-------------------------------------+-------------------------------------
Reporter: Lantizia | Owner: Anvansh
| Singh
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: auth | Triage Stage: Accepted
createsuperuser superuser email |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):
Replying to [comment:15 Mateusz Więckowski]:
> Okay, got It. This is how it works for me now:
>
>
> {{{
> py manage.py createsuperuser --username testing --noinput
> CommandError: You must use --email with --noinput.
>
> py manage.py createsuperuser --email "" --username testing --noinput
> Superuser created successfully.
> }}}
>
> I did not change anything for the "interactive" part of the process - as
far as I've understood from the comments it works as intended.
Thanks for sharing this. What shell are you using? I'm using bash on an
ubuntu system with Python 3.11, and I get this:
{{{
$ python -Wall manage.py createsuperuser --email "" --username testing
--noinput
CommandError: You must use --email with --noinput.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34542#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018964107de7-d8b91fa1-4dbb-419d-9636-419f4f0a2d7a-000000%40eu-central-1.amazonses.com.