From 5ac400eebd07e113f232bfa5f1f71a4285cb9483 Mon Sep 17 00:00:00 2001 From: Oleksii Miroshnychenko Date: Wed, 22 Apr 2015 14:53:31 +0300 Subject: [PATCH 1/3] ticket:1 enable debug --- apps/hello/templates/index.html | 2 +- fortytwo_test_task/settings/common.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/hello/templates/index.html b/apps/hello/templates/index.html index 1157650134..9b73e03670 100644 --- a/apps/hello/templates/index.html +++ b/apps/hello/templates/index.html @@ -22,7 +22,7 @@
-

42 Coffee Cups Test Assignment

+

42 Coffee Cups Test Assignment{{ host }}

diff --git a/fortytwo_test_task/settings/common.py b/fortytwo_test_task/settings/common.py index 519ae59ad4..a7b4c77000 100644 --- a/fortytwo_test_task/settings/common.py +++ b/fortytwo_test_task/settings/common.py @@ -30,8 +30,7 @@ TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ - '213.111.120.66', - '213.111.120.65' + '*', ] From c0e218d905fe31eba5733a599df9482bf6397a73 Mon Sep 17 00:00:00 2001 From: Oleksii Miroshnychenko Date: Wed, 22 Apr 2015 14:59:48 +0300 Subject: [PATCH 2/3] ticket:1 add HTTP_HOST to template --- apps/hello/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hello/templates/index.html b/apps/hello/templates/index.html index 9b73e03670..7d8ec6eb5a 100644 --- a/apps/hello/templates/index.html +++ b/apps/hello/templates/index.html @@ -22,7 +22,7 @@
-

42 Coffee Cups Test Assignment{{ host }}

+

42 Coffee Cups Test Assignment{{ host.HTTP_HOST }}

From 939a756bf83bf9ee764d6e61f255bd450fe0e4b9 Mon Sep 17 00:00:00 2001 From: Oleksii Miroshnychenko Date: Wed, 22 Apr 2015 15:03:38 +0300 Subject: [PATCH 3/3] ticket:1 revert changes --- apps/hello/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hello/templates/index.html b/apps/hello/templates/index.html index 7d8ec6eb5a..1157650134 100644 --- a/apps/hello/templates/index.html +++ b/apps/hello/templates/index.html @@ -22,7 +22,7 @@
-

42 Coffee Cups Test Assignment{{ host.HTTP_HOST }}

+

42 Coffee Cups Test Assignment