Skip to content

Commit

Permalink
Fix to settings to allow api access when non-debug mode. Fix to fixtu…
Browse files Browse the repository at this point in the history
…res.
  • Loading branch information
Justin Littman committed May 28, 2016
1 parent 45daf69 commit 616b68e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
26 changes: 0 additions & 26 deletions docker/app-dev/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,6 @@
"model": "auth.group",
"pk": 2
},
{
"fields": {
"is_visible": true,
"stats": "",
"name": "testcollection",
"date_updated": "2015-12-01T19:10:46Z",
"date_added": "2015-12-01T19:10:28Z",
"group": 1,
"description": "This is a test collection."
},
"model": "ui.collection",
"pk": 1
},
{
"fields": {
"is_visible": true,
"stats": "",
"name": "Test Collection 2",
"date_updated": "2015-12-30T13:18:40.392Z",
"date_added": "2015-12-29T20:24:47Z",
"group": 2,
"description": "This collection is for testing purposes."
},
"model": "ui.collection",
"pk": 2
},
{
"fields": {
"username": "testuser",
Expand Down
2 changes: 1 addition & 1 deletion sfm/sfm/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Used when DEBUG = False
# See https://docs.djangoproject.com/en/1.8/ref/settings/#allowed-hosts
# This will remove ports if provided.
ALLOWED_HOSTS = (env.get('SFM_HOST', 'localhost').split(":")[0],)
ALLOWED_HOSTS = (env.get('SFM_HOST', 'localhost').split(":")[0], 'api')

# Application definition

Expand Down

0 comments on commit 616b68e

Please sign in to comment.