From 7f5fe6b89c793c2d1ef0363db189907c4ee4a330 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 12 Jan 2014 05:59:01 +0000 Subject: [PATCH] ALLOWED_HOSTS is now a required field, supporting localhost and the various karmanotes.org URLs. --- karmaworld/settings/common.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/karmaworld/settings/common.py b/karmaworld/settings/common.py index 4b20c2f..568f7f6 100644 --- a/karmaworld/settings/common.py +++ b/karmaworld/settings/common.py @@ -15,6 +15,18 @@ from karmaworld.secret.filepicker import FILEPICKER_API_KEY as fp_api FILEPICKER_API_KEY = fp_api +########## REQUIRED SECURITY CONFIGURATION +# See: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-ALLOWED_HOSTS +# The hosts that this server runs from. +ALLOWED_HOSTS = [ + '127.0.0.1', # for dev systems / VMs, but should be safe enough + 'localhost', # for dev systems / VMs, but should be safe enough + 'beta.karmanotes.org.', + 'www.karmanotes.org.', + 'karmanotes.org', +] +########## END SECURITY CONFIGURATION + ########## PATH CONFIGURATION # Absolute filesystem path to the Django project directory: DJANGO_ROOT = dirname(dirname(abspath(__file__))) -- 2.25.1