ALLOWED_HOSTS is now a required field, supporting localhost and the various karmanote...
authorBryan <btbonval@gmail.com>
Sun, 12 Jan 2014 05:59:01 +0000 (05:59 +0000)
committerBryan <btbonval@gmail.com>
Sun, 12 Jan 2014 05:59:01 +0000 (05:59 +0000)
karmaworld/settings/common.py

index 4b20c2f6d2c5e01843058872adce6680661597d2..568f7f6ab80e8bc6974ddb408db4c7d32524fa42 100644 (file)
@@ -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__)))