Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-analytics-data-api
Commits
e6235e51
Commit
e6235e51
authored
Jan 17, 2017
by
Tyler Hallada
Committed by
GitHub
Jan 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #153 from edx/thallada/allowed-hosts
Add "analyticsapi" to local ALLOWED_HOSTS setting
parents
b38ecd3c
1818db49
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
analytics_data_api/management/commands/generate_fake_course_data.py
+1
-1
analyticsdataserver/settings/local.py
+7
-0
No files found.
analytics_data_api/management/commands/generate_fake_course_data.py
View file @
e6235e51
...
...
@@ -48,7 +48,7 @@ class Command(BaseCommand):
'--course_id'
,
action
=
'store'
,
dest
=
'course_id'
,
default
=
'course-v1:edX+DemoX+Demo_Course
t
'
,
default
=
'course-v1:edX+DemoX+Demo_Course'
,
help
=
'Course ID for which to generate fake data'
,
)
parser
.
add_argument
(
...
...
analyticsdataserver/settings/local.py
View file @
e6235e51
...
...
@@ -67,4 +67,11 @@ SWAGGER_SETTINGS = {
LMS_BASE_URL
=
'http://localhost:8000/'
# the base URL for your running local LMS instance
COURSE_BLOCK_API_AUTH_TOKEN
=
'paste auth token here'
# see README for instructions on how to configure this value
# In Insights, we run this API as a separate service called "analyticsapi" to run acceptance/integration tests. Docker
# saves the service name as a host in the Insights container so it can reach the API by requesting http://analyticsapi/.
# However, in Django 1.10.3, the HTTP_HOST header of requests started to be checked against the ALLOWED_HOSTS setting
# even in DEBUG=True mode. Here, we add the Docker service name "analyticsapi" to the default set of local allowed
# hosts.
ALLOWED_HOSTS
=
[
'localhost'
,
'127.0.0.1'
,
'::1'
,
'analyticsapi'
]
########## END ANALYTICS DATA API CONFIGURATION
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment