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
73225ece
Commit
73225ece
authored
Sep 06, 2016
by
Jesse Shapiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving 'enabled_reports' to Django setting; updating settings/base.py
parent
de61f86e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
analytics_data_api/v0/views/courses.py
+1
-3
analyticsdataserver/settings/base.py
+3
-11
No files found.
analytics_data_api/v0/views/courses.py
View file @
73225ece
...
@@ -799,9 +799,7 @@ class ReportDownloadView(APIView):
...
@@ -799,9 +799,7 @@ class ReportDownloadView(APIView):
* expiration_date: The date through which the link will be valid
* expiration_date: The date through which the link will be valid
* file_size: The size in bytes of the CSV download
* file_size: The size in bytes of the CSV download
"""
"""
enabled_reports
=
(
enabled_reports
=
settings
.
ENABLED_REPORT_IDENTIFIERS
'problem_response'
)
def
get
(
self
,
_request
,
course_id
,
report_name
):
def
get
(
self
,
_request
,
course_id
,
report_name
):
if
report_name
in
self
.
enabled_reports
:
if
report_name
in
self
.
enabled_reports
:
...
...
analyticsdataserver/settings/base.py
View file @
73225ece
...
@@ -85,15 +85,6 @@ USE_TZ = True
...
@@ -85,15 +85,6 @@ USE_TZ = True
########## END GENERAL CONFIGURATION
########## END GENERAL CONFIGURATION
########## MEDIA CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#media-root
MEDIA_ROOT
=
normpath
(
join
(
SITE_ROOT
,
'media'
))
# See: https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL
=
'/media/'
########## END MEDIA CONFIGURATION
########## STATIC FILE CONFIGURATION
########## STATIC FILE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root
STATIC_ROOT
=
normpath
(
join
(
SITE_ROOT
,
'assets'
))
STATIC_ROOT
=
normpath
(
join
(
SITE_ROOT
,
'assets'
))
...
@@ -309,11 +300,12 @@ ENABLE_ADMIN_SITE = False
...
@@ -309,11 +300,12 @@ ENABLE_ADMIN_SITE = False
# base url to generate link to user api
# base url to generate link to user api
LMS_USER_ACCOUNT_BASE_URL
=
None
LMS_USER_ACCOUNT_BASE_URL
=
None
# s
torage s
ettings for report downloads
# settings for report downloads
DEFAULT_FILE_STORAGE
=
'django.core.files.storage.FileSystemStorage'
DEFAULT_FILE_STORAGE
=
'django.core.files.storage.FileSystemStorage'
MEDIA_ROOT
=
'/edx/app/analytics_api/analytics_api/static/reports'
MEDIA_ROOT
=
normpath
(
join
(
SITE_ROOT
,
'static'
,
'reports'
))
MEDIA_URL
=
'http://localhost:8100/static/reports/'
MEDIA_URL
=
'http://localhost:8100/static/reports/'
COURSE_REPORT_FILE_LOCATION_TEMPLATE
=
'{course_id}_{report_name}.csv'
COURSE_REPORT_FILE_LOCATION_TEMPLATE
=
'{course_id}_{report_name}.csv'
ENABLED_REPORT_IDENTIFIERS
=
(
'problem_response'
,)
########## END ANALYTICS DATA API CONFIGURATION
########## 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