# [Bash]
pip install djangorestframework
# /mysite/settings.py
# Application definition
INSTALLED_APPS = [
# ...
'rest_framework',
# ...
]
# REST Framework
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}