Skip to content

Provide alternative runserver command for Windows#1

Closed
Almad wants to merge 1 commit intomasterfrom
hostname-workaround
Closed

Provide alternative runserver command for Windows#1
Almad wants to merge 1 commit intomasterfrom
hostname-workaround

Conversation

@Almad
Copy link
Copy Markdown
Owner

@Almad Almad commented May 16, 2015

On Windows, hostname may include non-ascii characters encoded by locale-specific encoding.

runserver tries to do gethostbyaddr, which then fails with UnicodeDecodeError as it always try to decode with utf-8

Providing IP explicitly (even if it's 0.0.0.0) enforces Django to skip this test, providing workaround for Python's bug #9377.

On Windows, hostname may include non-ascii characters encoded by locale-specific encoding.

`runserver` tries to do `gethostbyaddr`, which then fails with `UnicodeDecodeError` as it always try to decode with `utf-8`

Providing IP explicitly (even if it's `0.0.0.0`) enforces Django to skip this test, providing workaround for [Python's bug #9377](http://bugs.python.org/issue9377).
@Almad Almad closed this May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant