We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这里面只能看 api的,看不到views的 在url.py里面加一条 url(r'^api-auth/', include('rest_framework.urls')), 然后在rest_framework配置的地方settings.py里面 DEFAULT_RENDERER_CLASSES,如果该字段值为rest_framework.renderers.JSONRenderer 则注释掉
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', ), 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated', ], # 'DEFAULT_RENDERER_CLASSES': ( # 'rest_framework.renderers.JSONRenderer', # ),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这里面只能看 api的,看不到views的
在url.py里面加一条
url(r'^api-auth/', include('rest_framework.urls')),
然后在rest_framework配置的地方settings.py里面
DEFAULT_RENDERER_CLASSES,如果该字段值为rest_framework.renderers.JSONRenderer
则注释掉
The text was updated successfully, but these errors were encountered: