Configuring django for centralised log monitoring with ELK stack with custom logging option (eg. client ip, username, request & response data)

When you are lucky enough to have enough users that you decide to roll another cloud instance for your django app, logging becomes a little bit tough because in your architecture now you would be needing a load balancer which will be proxying request from […]

[Code snippet] Django rest framework social oauth2 user sign up and sign in

At my serializers.py I have got the following: from django.contrib.auth.models import User from rest_framework import serializers     class UserSerializer(serializers.ModelSerializer):     class Meta:         model = User         fields = (‘username’, ’email’, ‘password’)     def create(self, validated_data):         return User.objects.create_user(**validated_data) at my views.py I have […]