Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
24b6bb53
Commit
24b6bb53
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Change the name of the new site and update allowed hosts
parent
f531e669
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opentech/apply/migrations/0002_create_apply_homepage.py
+3
-3
3 additions, 3 deletions
opentech/apply/migrations/0002_create_apply_homepage.py
opentech/settings/dev.py
+1
-1
1 addition, 1 deletion
opentech/settings/dev.py
with
4 additions
and
4 deletions
opentech/apply/migrations/0002_create_apply_homepage.py
+
3
−
3
View file @
24b6bb53
...
@@ -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
=
Tru
e
)
hostname
=
'
apply.localhost
'
,
root_page
=
applyhomepage
,
is_default_site
=
Fals
e
)
class
Migration
(
migrations
.
Migration
):
class
Migration
(
migrations
.
Migration
):
...
...
This diff is collapsed.
Click to expand it.
opentech/settings/dev.py
+
1
−
1
View file @
24b6bb53
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment