Django-rest-framework-passwordless #61299
Replies: 1 comment
-
hello dear Anatoliy pip install djangorestframework We'll create a read-write API for accessing information on the users of our project. Any global settings for a REST framework API are kept in a single configuration dictionary named REST_FRAMEWORK. Start off by adding the following to your settings.py module: { We're ready to create our API now. Here's our project's root urls.py module: { Serializers define the API representation.class UserSerializer(serializers.HyperlinkedModelSerializer): ViewSets define the view behavior.class UserViewSet(viewsets.ModelViewSet): Routers provide an easy way of automatically determining the URL conf.router = routers.DefaultRouter() Wire up our API using automatic URL routing.Additionally, we include login URLs for the browsable API.urlpatterns = [ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello!!! I'm a beginner and I don't understand how to logout in django-rest-framework-passwordless? Please explain me.
Beta Was this translation helpful? Give feedback.
All reactions