Changes between Initial Version and Version 1 of Ticket #30091, comment 3


Ignore:
Timestamp:
Jan 17, 2019, 4:11:56 PM (6 years ago)
Author:
Mark Gregson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30091, comment 3

    initial v1  
    443. patch -p1 < min_example.diff
    55
    6 In this example I've configured ALLOWED_HOSTS = ['localhost'] and added '127.0.0.1 dummy' to my /etc/hosts file. Requesting http://dummy:8000/ reproduces the ImproperlyConfigured exception.
     6In this example I've configured ALLOWED_HOSTS = !['localhost'] and added '127.0.0.1 dummy' to my /etc/hosts file. Requesting http://dummy:8000/ reproduces the ImproperlyConfigured exception.
    77
    88While producing this example I found that placing CommonMiddleware before SessionMiddleware was also required to reproduce the bug.  I'm unsure if this is a configuration error; but I couldn't see anything about ordering of those two middleware classes when I scanned the documentation just now.
Back to Top