diff --git a/opentech/apply/migrations/0002_create_apply_homepage.py b/opentech/apply/migrations/0002_create_apply_homepage.py index d6bce1aed6dff0bad595c239b514b8b96ba27603..0031de11dd7d6b15681e814c0dd2f366cb231357 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 388ccda6a9b53ef682076fb6ce0ab7c87c089521..8992be6f89213411348fed870a91766d5ff96083 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'