#31010: Add subdomains of localhost to ALLOWED_HOSTS in DEBUG mode
-------------------------------+------------------------------------
Reporter: thenewguy | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by thenewguy):
* status: closed => new
* resolution: needsinfo =>
* easy: 0 => 1
* stage: Unreviewed => Accepted
Old description:
> It would minimize configuration for new projects if ALLOWED_HOSTS +=
> ['.localhost'] when DEBUG=True
>
> Chrome resolves *.localhost to localhost without modifying any host files
> or DNS
>
> Referencing the project this way makes it easy to test subdomains ->
> static.localhost, uploads.localhost, www.localhost, etc
New description:
It would minimize configuration for new projects if ALLOWED_HOSTS +=
['.localhost'] when DEBUG=True
Chrome resolves *.localhost to localhost without modifying any host files
or DNS
Referencing the project this way makes it easy to test subdomains ->
static.localhost, uploads.localhost, www.localhost, etc
---
Updated
---
Conversation on developer mailing list resulted in decision to reopen and
accept ticket. The conversation turned up that this behavior is spec
compliant per https://tools.ietf.org/html/rfc6761#section-6.3
--
--
Ticket URL: <https://code.djangoproject.com/ticket/31010#comment:3>
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/067.0ecb4b53def6bde26266653d317b089c%40djangoproject.com.