Chat with Angular and Django./ Initialization service.

Create a new serializer for the request backend/account/serializers/

Serializer for the 401 response backend/backend/serializers/

Create a view backend/account/views/

Add the view in the routing.

Create a new service in the core app.

Create a request to the backend in this service and dispatch the Init action in the Store.

from rest_framework import serializers
from account.serializers.profile import UserProfileSerializer

class InitSerializer(serializers.Serializer):
    token = serializers.CharField()
    user = UserProfileSerializer()
from rest_framework import serializers

class NoAuthSerializer(serializers.Serializer):
    detail = serializers.CharField()
    status_code = serializers.IntegerField()
    status = serializers.IntegerField()
    info = serializers.CharField()
Потратить 2 кредита и начать обучение! У вас кредитов(а)
Задать вопрос, прокомментировать.