diff --git a/lms/djangoapps/courseware/views/views.py b/lms/djangoapps/courseware/views/views.py index 297a9b7dc2..582438de50 100644 --- a/lms/djangoapps/courseware/views/views.py +++ b/lms/djangoapps/courseware/views/views.py @@ -478,11 +478,6 @@ def course_info(request, course_id): # Shared code with the new Course Home (DONE) dates_fragment = CourseDatesFragmentView().render_to_fragment(request, course_id=course_id) - # This local import is due to the circularity of lms and openedx references. - # This may be resolved by using stevedore to allow web fragments to be used - # as plugins, and to avoid the direct import. - from openedx.features.course_experience.views.course_reviews import CourseReviewsModuleFragmentView - # Shared code with the new Course Home (DONE) # Get the course tools enabled for this user and course course_tools = CourseToolsPluginManager.get_enabled_course_tools(request, course_key) @@ -947,14 +942,6 @@ def course_about(request, course_id): allow_anonymous = check_public_access(course, [COURSE_VISIBILITY_PUBLIC, COURSE_VISIBILITY_PUBLIC_OUTLINE]) - # This local import is due to the circularity of lms and openedx references. - # This may be resolved by using stevedore to allow web fragments to be used - # as plugins, and to avoid the direct import. - from openedx.features.course_experience.views.course_reviews import CourseReviewsModuleFragmentView - - # Embed the course reviews tool - reviews_fragment_view = CourseReviewsModuleFragmentView().render_to_fragment(request, course=course) - context = { 'course': course, 'course_details': course_details, @@ -979,7 +966,6 @@ def course_about(request, course_id): 'disable_courseware_header': True, 'pre_requisite_courses': pre_requisite_courses, 'course_image_urls': overview.image_urls, - 'reviews_fragment_view': reviews_fragment_view, 'sidebar_html_enabled': sidebar_html_enabled, 'allow_anonymous': allow_anonymous, } diff --git a/lms/envs/common.py b/lms/envs/common.py index ed0268dbb7..9d3cd0da9a 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -702,15 +702,7 @@ FEATURES = { # e.g. COURSE_BLOCKS_API_EXTRA_FIELDS = [ ('course', 'other_course_settings'), ("problem", "weight") ] COURSE_BLOCKS_API_EXTRA_FIELDS = [] -# Settings for the course reviews tool template and identification key, set either to None to disable course reviews -COURSE_REVIEWS_TOOL_PROVIDER_FRAGMENT_NAME = 'coursetalk-reviews-fragment.html' -COURSE_REVIEWS_TOOL_PROVIDER_PLATFORM_KEY = 'edx' -# CDN links to CourseTalk scripts to load read and write widgets -COURSE_TALK_READ_ONLY_SOURCE = '//d3q6qq2zt8nhwv.cloudfront.net/s/js/widgets/coursetalk-read-reviews.js' -COURSE_TALK_WRITE_ONLY_SOURCE = '//d3q6qq2zt8nhwv.cloudfront.net/s/js/widgets/coursetalk-write-reviews.js' - -# Ignore static asset files on import which match this pattern ASSET_IGNORE_REGEX = r"(^\._.*$)|(^\.DS_Store$)|(^.*~$)" # Used for A/B testing diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index c09acc06d8..a65258c527 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -241,13 +241,6 @@ from six import string_types %block> - <%block name="course_about_reviews_tool"> - ## Course reviews tool - % if reviews_fragment_view: - ${HTML(reviews_fragment_view.body_html())} - % endif - %block> - ## For now, ocw links are the only thing that goes in additional resources % if get_course_about_section(request, course, "ocw_links"):