Opened 2 years ago

Closed 2 years ago

#19751 closed Bug (duplicate)

Strange output while creating a superuser (works OK in v1.4)

Reported by: fgimian Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Normal Keywords: locale
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hey there guys, I noticed a little bug while working with Django 1.5 stable branch (I have also confirmed that the issue is present in master too).

My locale is en-AU which I also explicitly set in settings.py:

os.environ['LANG'] = 'en_AU.UTF-8'
TIME_ZONE = 'Australia/Melbourne'
LANGUAGE_CODE = 'en-au'

When performing an initial syncdb, I see the following when creating my superuser:

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
<django.utils.functional.__proxy__ object at 0x2e6ea90> (leave blank to use 'www-data'): admin
<django.utils.functional.__proxy__ object at 0x2e79e50>: password
Error: Enter a valid e-mail address.
<django.utils.functional.__proxy__ object at 0x2e79f10>: oops@hello.com
Password:
Password (again):
Superuser created successfully.

On the exact server, if I substitute this for Django 1.4, all is well:

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'www-data'): admin
E-mail address: oops@hello.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Cheers
Fotis

Change History (1)

comment:1 Changed 2 years ago by carljm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the report! This was already reported in #19745

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