Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
8d4e0f83
Commit
8d4e0f83
authored
Mar 13, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ANALYTICS_API_KEY to config files and dashboard analytics call
parent
33c2507a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
lms/djangoapps/instructor/views.py
+3
-1
lms/envs/aws.py
+1
-0
lms/envs/dev.py
+2
-0
No files found.
lms/djangoapps/instructor/views.py
View file @
8d4e0f83
...
...
@@ -599,7 +599,9 @@ def instructor_dashboard(request, course_id):
logs and swallows errors.
"""
url
=
settings
.
ANALYTICS_SERVER_URL
+
\
"get?aname={}&course_id={}"
.
format
(
analytics_name
,
course_id
)
"get?aname={}&course_id={}&apikey={}"
.
format
(
analytics_name
,
course_id
,
settings
.
ANALYTICS_API_KEY
)
try
:
res
=
requests
.
get
(
url
)
except
Exception
:
...
...
lms/envs/aws.py
View file @
8d4e0f83
...
...
@@ -113,3 +113,4 @@ DATADOG_API = AUTH_TOKENS.get("DATADOG_API")
# Analytics dashboard server
ANALYTICS_SERVER_URL
=
ENV_TOKENS
.
get
(
"ANALYTICS_SERVER_URL"
)
ANALYTICS_API_KEY
=
AUTH_TOKENS
.
get
(
"ANALYTICS_API_KEY"
,
""
)
lms/envs/dev.py
View file @
8d4e0f83
...
...
@@ -221,3 +221,4 @@ PEARSON_TEST_PASSWORD = "12345"
########################## ANALYTICS TESTING ########################
ANALYTICS_SERVER_URL
=
"http://127.0.0.1:9000/"
ANALYTICS_API_KEY
=
""
\ No newline at end of file
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