1 |
commit: f3fd93158f4fadf7290c8e2369d88db632d78612 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 22:33:32 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 23:16:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/euscan.git/commit/?id=f3fd9315 |
7 |
|
8 |
settings: Set ALLOWED_HOSTS default to satisfy DEBUG=False |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
|
12 |
euscanwww/euscanwww/settings.py | 6 ++++++ |
13 |
1 file changed, 6 insertions(+) |
14 |
|
15 |
diff --git a/euscanwww/euscanwww/settings.py b/euscanwww/euscanwww/settings.py |
16 |
index d9879ff..4ee020b 100644 |
17 |
--- a/euscanwww/euscanwww/settings.py |
18 |
+++ b/euscanwww/euscanwww/settings.py |
19 |
@@ -5,6 +5,12 @@ import os.path |
20 |
DEBUG = False |
21 |
TEMPLATE_DEBUG = DEBUG |
22 |
|
23 |
+ALLOWED_HOSTS = [ |
24 |
+ '0.0.0.0', |
25 |
+ '127.0.0.1', |
26 |
+ '172.0.0.0/8', # Docker internal |
27 |
+] |
28 |
+ |
29 |
ADMINS = ( |
30 |
('admin', 'admin@×××××××.com'), |
31 |
) |