Django restframework frame combing - base (a)

1 Introduction

  • Django framework on the basis of secondary development
  • Restful API for building
  • DRF simply referred to as a frame or frame REST framework

2. Features

  • It provides a powerful Serializer serializer may serialize and deserialize efficient operation;
  • Provides a very rich class view, Mixin extend the class, ViewSet set of views;
  • Web API provides an intuitive interface; a variety of authentication and certification authority;
  • Powerful sorting, filtering, paging, searching, limiting and other functions; scalability, plug-rich

3. Installation & Configuration

installation:

pip install djangorestframework
pip install markdown

Set in settings.py:

INSTALLED_APPS = [
    ...
    # Django third-party plug-ins
    'rest_framework',
    # Register a child application, sub-application name .apps. Sub-application name capitalized Config
    ...
]

 

Guess you like

Origin www.cnblogs.com/rick66/p/11940039.html