Changes between Initial Version and Version 1 of Ticket #30091, comment 3
- Timestamp:
- Jan 17, 2019, 4:11:56 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30091, comment 3
initial v1 4 4 3. patch -p1 < min_example.diff 5 5 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.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. 7 7 8 8 While 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.