File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -117,3 +117,19 @@ python manage.py lms migrate
117117# exit the lms bash shell
118118tutor dev restart lms
119119```
120+
121+ # Local Development for the Backend Plugin without Tutor
122+
123+ ```
124+ # In edx-platform
125+ pip install -e /path/to/sample-plugin/backend
126+ # start up lms/cms
127+ # https://github.com/openedx/edx-platform/blob/master/README.rst?plain=1#L171-L183
128+
129+ # Enabled Learner Dashboard MFE( Called learner_home in edx-platform)
130+ 1 . Go to http://localhost:18000/admin/waffle/flag/
131+ 2 . Click ` Add Flag `
132+ 3 . Set ` Name ` to ` learner_home_mfe.enabled `
133+ 4 . Set ` Everyone ` to ` Yes `
134+ 5 . Click ` Save `
135+ ```
Original file line number Diff line number Diff line change 1111from rest_framework import filters , permissions , viewsets
1212from rest_framework .exceptions import PermissionDenied , ValidationError
1313from rest_framework .pagination import PageNumberPagination
14- from rest_framework .throttling import AnonRateThrottle , UserRateThrottle
14+ from rest_framework .throttling import UserRateThrottle
1515
1616from sample_plugin .models import CourseArchiveStatus
1717from sample_plugin .serializers import CourseArchiveStatusSerializer
@@ -77,7 +77,7 @@ class CourseArchiveStatusViewSet(viewsets.ModelViewSet):
7777 serializer_class = CourseArchiveStatusSerializer
7878 permission_classes = [IsOwnerOrStaffSuperuser ]
7979 pagination_class = CourseArchiveStatusPagination
80- throttle_classes = [CourseArchiveStatusThrottle , AnonRateThrottle ]
80+ throttle_classes = [CourseArchiveStatusThrottle , ]
8181 filter_backends = [DjangoFilterBackend , filters .OrderingFilter ]
8282 filterset_fields = ["course_id" , "user" , "is_archived" ]
8383 ordering_fields = [
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def is_requirement(line):
143143
144144 include_package_data = True ,
145145 install_requires = load_requirements ('requirements/base.in' ),
146- python_requires = ">=3.12 " ,
146+ python_requires = ">=3.11 " ,
147147 license = "Apache Software License 2.0" ,
148148 zip_safe = False ,
149149 keywords = 'Python edx' ,
You can’t perform that action at this time.
0 commit comments