This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
analytics_data_api/v0/views
analyticsdataserver/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -799,9 +799,7 @@ class ReportDownloadView(APIView):
799799 * expiration_date: The date through which the link will be valid
800800 * file_size: The size in bytes of the CSV download
801801 """
802- enabled_reports = (
803- 'problem_response'
804- )
802+ enabled_reports = settings .ENABLED_REPORT_IDENTIFIERS
805803
806804 def get (self , _request , course_id , report_name ):
807805 if report_name in self .enabled_reports :
Original file line number Diff line number Diff line change 8585########## END GENERAL CONFIGURATION
8686
8787
88- ########## MEDIA CONFIGURATION
89- # See: https://docs.djangoproject.com/en/dev/ref/settings/#media-root
90- MEDIA_ROOT = normpath (join (SITE_ROOT , 'media' ))
91-
92- # See: https://docs.djangoproject.com/en/dev/ref/settings/#media-url
93- MEDIA_URL = '/media/'
94- ########## END MEDIA CONFIGURATION
95-
96-
9788########## STATIC FILE CONFIGURATION
9889# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root
9990STATIC_ROOT = normpath (join (SITE_ROOT , 'assets' ))
309300# base url to generate link to user api
310301LMS_USER_ACCOUNT_BASE_URL = None
311302
312- # storage settings for report downloads
303+ # settings for report downloads
313304DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
314- MEDIA_ROOT = '/edx/app/analytics_api/analytics_api/ static/ reports'
305+ MEDIA_ROOT = normpath ( join ( SITE_ROOT , ' static' , ' reports'))
315306MEDIA_URL = 'http://localhost:8100/static/reports/'
316307COURSE_REPORT_FILE_LOCATION_TEMPLATE = '{course_id}_{report_name}.csv'
308+ ENABLED_REPORT_IDENTIFIERS = ('problem_response' ,)
317309
318310########## END ANALYTICS DATA API CONFIGURATION
319311
You can’t perform that action at this time.
0 commit comments