Skip to content
Snippets Groups Projects
Commit 24b6bb53 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Change the name of the new site and update allowed hosts

parent f531e669
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ def create_homepage(apps, schema_editor): ...@@ -17,8 +17,8 @@ def create_homepage(apps, schema_editor):
# Create a new homepage # Create a new homepage
applyhomepage = ApplyHomePage.objects.create( applyhomepage = ApplyHomePage.objects.create(
title="ApplyHomepage", title="Apply Homepage",
draft_title="ApplyHomepage", draft_title="Apply Homepage",
slug='apply', slug='apply',
content_type=homepage_content_type, content_type=homepage_content_type,
path='00010002', path='00010002',
...@@ -29,7 +29,7 @@ def create_homepage(apps, schema_editor): ...@@ -29,7 +29,7 @@ def create_homepage(apps, schema_editor):
# Create a site with the new homepage set as the root # Create a site with the new homepage set as the root
Site.objects.create( 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): class Migration(migrations.Migration):
......
...@@ -8,7 +8,7 @@ SECRET_KEY = 'CHANGEME!!!' ...@@ -8,7 +8,7 @@ SECRET_KEY = 'CHANGEME!!!'
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2') 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' BASE_URL = 'http://localhost:8000'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment