Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15112 closed (fixed)

runserver shows wrong IPv6 notation as address if started with -6 option, without giving a specific address to bind to

Reported by: Elmar Athmer Owned by: nobody
Component: django-admin.py runserver Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you use ./manage.py runserver -6 django prints

Development server is running at http://::1:8000/ - but the proper address is http://[::1]:8000. The url is only printed properly if the runserver command is started with a specific IP address, e.g.: ./manage.py runserver [::1]:8000 .

Attachments (2)

ipv6_address_notation.diff (568 bytes ) - added by Elmar Athmer 14 years ago.
sets the variable used to determine if the address should be surrounded by brackets
ticket15112.diff (1.8 KB ) - added by Łukasz Rekucki 14 years ago.
Same patch, but with tests.

Download all attachments as: .zip

Change History (6)

by Elmar Athmer, 14 years ago

Attachment: ipv6_address_notation.diff added

sets the variable used to determine if the address should be surrounded by brackets

by Łukasz Rekucki, 14 years ago

Attachment: ticket15112.diff added

Same patch, but with tests.

comment:1 by Łukasz Rekucki, 14 years ago

milestone: 1.3
Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 14 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(In [15343]) Fixed #15112 -- Ensure that IPv6 addresses are correctly displayed in the admin. Thanks to oxy for the report, and Łukasz Rekucki for the test case.

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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