Add ::1 and localhost in settings.dev.ALLOWED_HOSTS
[xnet] / xnet / settings / dev.py
index 2ad4b73..0e55deb 100644 (file)
@@ -3,9 +3,20 @@ from .base import *
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 
+INSTALLED_APPS = list(INSTALLED_APPS) + [
+    'xnet.datasets',
+]
+
+# Enable fake authentication.
+AUTHGROUPEX_FAKE = True
+AUTHGROUPEX_KEY = 'Just_for_dev'
+AUTHGROUPEX_ENDPOINT = 'authgroupex:fake_endpoint'
+
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.sqlite3',
         'NAME': os.path.join(ROOT_DIR, 'db.sqlite'),
     }
 }
+
+ALLOWED_HOSTS = ['127.0.0.1', '[::1]', 'localhost']