Django-rest-framework-passwordless #61299
Replies: 2 comments
-
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.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
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