From: Bryan Date: Sun, 12 Jan 2014 05:59:01 +0000 (+0000) Subject: ALLOWED_HOSTS is now a required field, supporting localhost and the various karmanote... X-Git-Tag: release-20150131~277 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7f5fe6b89c793c2d1ef0363db189907c4ee4a330;p=oweals%2Fkarmaworld.git ALLOWED_HOSTS is now a required field, supporting localhost and the various karmanotes.org URLs. --- 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__)))