django-rest-framework
作者:互联网
网址:
https://www.django-rest-framework.org/
支持:
- Python (3.6, 3.7, 3.8, 3.9, 3.10)
- Django (2.2, 3.0, 3.1, 3.2, 4.0)
安装:
-
pip install djangorestframework
pip install markdown # Markdown support for the browsable API.
pip install django-filter # Filtering support
- 或
git clone https://github.com/encode/django-rest-framework
注册:
Add 'rest_framework' to your INSTALLED_APPS setting.
INSTALLED_APPS = [
...
'rest_framework',
]
url:
urlpatterns = [
...
path('api-auth/', include('rest_framework.urls'))
]
权限:
标签:rest,INSTALLED,framework,install,pip,django 来源: https://www.cnblogs.com/beichengshiqiao/p/16142327.html