Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Replace rest_framework_swagger with drf_yasg #3654

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

iamsobanjaved
Copy link
Contributor

@iamsobanjaved iamsobanjaved commented Feb 21, 2022

This PR replaces #3539 as the author couldn't continue on that.

Upgrade issue: edx/upgrades#17

This PR is needed for Django 3.2 support.

Screenshots on devstack:

With user logged in

image

Anonymous user

image

@iamsobanjaved iamsobanjaved force-pushed the iamsobanjaved/replace-swagger branch from 6903b69 to eef57b5 Compare February 21, 2022 09:51
@iamsobanjaved iamsobanjaved force-pushed the iamsobanjaved/replace-swagger branch from abe64a9 to 5f00f6b Compare February 21, 2022 12:11
@iamsobanjaved iamsobanjaved marked this pull request as ready for review February 21, 2022 12:32
@iamsobanjaved iamsobanjaved changed the title Iamsobanjaved/replace swagger Replace rest_framework_swagger with drf_yasg Feb 21, 2022
@aht007
Copy link
Contributor

aht007 commented Feb 21, 2022

@iamsobanjaved LGTM but I would like to mention one thing. From the documentation of drf-yasg I can see that in order for serving swagger ui's css/js files we need to add this to INSTALLED_APPS in settings.py. We are also using the views.with_ui so I think we need to do the above mentioned step. I would like to know about your POV though.

@@ -305,7 +305,7 @@
'crispy_forms',
'solo',
'social_django',
'rest_framework_swagger',
'drf_yasg',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aht007 I have already added drf-yasg to INSTALLED_APPS here. This list (DJANGO_APPS) is the part of INSTALLED_APPS

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Okay. I mistook this file for base.in

@iamsobanjaved iamsobanjaved merged commit 80d4ae6 into master Feb 22, 2022
@iamsobanjaved iamsobanjaved deleted the iamsobanjaved/replace-swagger branch February 22, 2022 07:55
iamsobanjaved added a commit that referenced this pull request Mar 1, 2022
Co-authored-by: GonzaloRomero <gonzalo.romero@edunext.co>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants