Opened 4 years ago

Closed 4 years ago

Last modified 4 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: oxy Owned by: nobody
Component: django-admin.py runserver Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 oxy 4 years ago.
sets the variable used to determine if the address should be surrounded by brackets
ticket15112.diff (1.8 KB) - added by lrekucki 4 years ago.
Same patch, but with tests.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by oxy

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

Changed 4 years ago by lrekucki

Same patch, but with tests.

comment:1 Changed 4 years ago by lrekucki

  • milestone set to 1.3
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by claudep

  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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