Wire h library download zip8/7/2023 ![]() Start off by adding the following to your settings. We'll create a read-write API for accessing information on the users of our project.Īny global settings for a REST framework API are kept in a single configuration dictionary named REST_FRAMEWORK. Let's take a look at a quick example of using REST framework to build a simple model-backed API. Note that the URL path can be whatever you want. Path('api-auth/', include('rest_framework.urls')) Add the following to your root urls.py file. If you're intending to use the browsable API you'll probably also want to add REST framework's login and logout views. ![]() git clone Īdd 'rest_framework' to your INSTALLED_APPS setting. Pip install django-filter # Filtering support Pip install markdown # Markdown support for the browsable API. Install using pip, including any optional packages you want.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |