#31010: Add subdomains of localhost to ALLOWED_HOSTS in DEBUG mode
-------------------------------+--------------------------------------
Reporter: thenewguy | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => needsinfo
Comment:
Interesting. Currently we have, in HttpRequest.get_host():
{{{
# Allow variants of localhost if ALLOWED_HOSTS is empty and
DEBUG=True.
allowed_hosts = settings.ALLOWED_HOSTS
if settings.DEBUG and not allowed_hosts:
allowed_hosts = ['localhost', '127.0.0.1', '[::1]']
}}}
Can I ask you to post to the DevelopersMailingList to canvas opinion?
Assuming no blockers are raised it seems reasonable enough... (Reopen if
accepted there.)
--
Ticket URL: <https://code.djangoproject.com/ticket/31010#comment:1>
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.1e0bc7f71bade123aa00ba095567a4b4%40djangoproject.com.