From 5f28b56b9f85300077a8c8dcb75fba308da7bce1 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 12 Dec 2013 01:06:48 +0100 Subject: [PATCH] add more comments to settings.py, esp. about the different kinds of HOSTs --- nsupdate/settings.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nsupdate/settings.py b/nsupdate/settings.py index e04eef9..d7d73c8 100644 --- a/nsupdate/settings.py +++ b/nsupdate/settings.py @@ -44,13 +44,16 @@ DATABASES = { } WE_HAVE_SSL = True # True if you run a https site also, suggest that site to users if they work on the http site. -BASEDOMAIN = 'nsupdate.info' SERVICE_CONTACT = 'info AT nsupdate DOT info' # shown on "about" page -WWW_HOST = BASEDOMAIN -WWW_IPV4_HOST = 'ipv4.' + BASEDOMAIN -WWW_IPV6_HOST = 'ipv6.' + BASEDOMAIN -# for debugging IP detection on localhost +# these are the service host names we deal with +BASEDOMAIN = 'nsupdate.info' +WWW_HOST = BASEDOMAIN # a host with a ipv4 and a ipv6 address +# hosts to enforce a v4 / v6 connection (to determine the respective ip) +WWW_IPV4_HOST = 'ipv4.' + BASEDOMAIN # a host with ONLY a ipv4 address +WWW_IPV6_HOST = 'ipv6.' + BASEDOMAIN # a host with ONLY a ipv6 address + +# for debugging IP detection on localhost, use this: #WWW_IPV4_HOST = 'localhost:8000' #WWW_IPV6_HOST = 'ip6-localhost:8000'