From 24b6bb53d0ee1dc9d2b6f301b4cdabccf758ced8 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Fri, 22 Dec 2017 10:07:23 +0000
Subject: [PATCH] Change the name of the new site and update allowed hosts

---
 opentech/apply/migrations/0002_create_apply_homepage.py | 6 +++---
 opentech/settings/dev.py                                | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opentech/apply/migrations/0002_create_apply_homepage.py b/opentech/apply/migrations/0002_create_apply_homepage.py
index d6bce1aed..0031de11d 100644
--- a/opentech/apply/migrations/0002_create_apply_homepage.py
+++ b/opentech/apply/migrations/0002_create_apply_homepage.py
@@ -17,8 +17,8 @@ def create_homepage(apps, schema_editor):
 
     # Create a new homepage
     applyhomepage = ApplyHomePage.objects.create(
-        title="ApplyHomepage",
-        draft_title="ApplyHomepage",
+        title="Apply Homepage",
+        draft_title="Apply Homepage",
         slug='apply',
         content_type=homepage_content_type,
         path='00010002',
@@ -29,7 +29,7 @@ def create_homepage(apps, schema_editor):
 
     # Create a site with the new homepage set as the root
     Site.objects.create(
-        hostname='apply.localhost', root_page=applyhomepage, is_default_site=True)
+        hostname='apply.localhost', root_page=applyhomepage, is_default_site=False)
 
 
 class Migration(migrations.Migration):
diff --git a/opentech/settings/dev.py b/opentech/settings/dev.py
index 388ccda6a..8992be6f8 100644
--- a/opentech/settings/dev.py
+++ b/opentech/settings/dev.py
@@ -8,7 +8,7 @@ SECRET_KEY = 'CHANGEME!!!'
 
 INTERNAL_IPS = ('127.0.0.1', '10.0.2.2')
 
-ALLOWED_HOSTS= ['apply.localhost', 'localhost']
+ALLOWED_HOSTS= ['apply.localhost', 'localhost', '127.0.0.1']
 
 BASE_URL = 'http://localhost:8000'
 
-- 
GitLab