Add drf-yasg
* Install drf-yasg * Add drf-yasg settings and urls * Pin drf to make drf-yasg work * Adjust config-models version to be compatible * Remove django-rest-swagger (the old way)
This commit is contained in:
@@ -1173,7 +1173,7 @@ INSTALLED_APPS = [
|
||||
'pipeline_mako',
|
||||
|
||||
# API Documentation
|
||||
'rest_framework_swagger',
|
||||
'drf_yasg',
|
||||
|
||||
'openedx.features.course_duration_limits',
|
||||
'openedx.features.content_type_gating',
|
||||
|
||||
@@ -108,6 +108,10 @@ def should_show_debug_toolbar(request):
|
||||
DEBUG_TOOLBAR_MONGO_STACKTRACES = False
|
||||
|
||||
|
||||
########################### API DOCS #################################
|
||||
|
||||
FEATURES['ENABLE_API_DOCS'] = True
|
||||
|
||||
################################ MILESTONES ################################
|
||||
FEATURES['MILESTONES_APP'] = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user