I recently updated to Django 4.0 and DRF 3.13.1, and now my API shows in json format by default, whereas before it was showing the interface.
I would like to see an interface like so:
But this is what I now get.
Is there a way to change this back to the interface? Sorry if this is a silly question.
CodePudding user response:
In settings.py:
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.BrowsableAPIRenderer', # add this first.
'rest_framework.renderers.JSONRenderer',
),
...