Django Custom Managers - A Manager is the interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application. You can use a custom Manager in a particular model by extending the base Manager class and instantiating your custom Manager in your model. There are two reasons you might want to customize a Manager: to add extra Manager methods, and/or to modify the initial QuerySet the Manager returns.
Containers run services in an isolated environment, if we deploy our applications using containers then the host system on which these containers are running will not be affected even though the applications running within containers are being hacked.
Understand self and __init__ method in python Class?
Before understanding the "self" and "__init__" methods in python class, it's very helpful if we have the idea of what is a class and object.
object is one of instances of the class. which can perform the functionalities which are defined in the class.
self represents the instance of the class. By using the "self" keyword we can access the attributes and methods of the class in python.
Amazon Simple Queue Service (Amazon SQS) is a distributed messaging queue service.
Queued items in SQS are called messages which are variable in size but can be no larger than 256KB. SQS doesn’t guarantee delivery order or that a message will be delivered only once. Using Visibility Timeout we can ensures once a message has been retrieved it will not be resent for a given period of time.
HTTP Authentication is used to allow access limit to a site or particular directories by validating the username and password. HTTP basic authentication can also be combined with other access restriction methods, for example, restricting access by IP address or by geographical location.
React provides some specific methods which are executed when specific condition triggered in component. basically these methods are divided into 3 parts mounting component, updating component data and un-mounting component.
MACVLAN creates multiple virtual network interfaces with different MAC addresses. This way if your system has multiple IP addresses with MAC addresses then we can create multiple virtual network interfaces each having their own IP address and MAC address.
ReactJs is populer JS script library for building User Interface. It's components are reusable and efficiently manages the data that changes over time. In this blog post i am going to discuss component, state, props in ReactJS.
In this blog post, we will learn how to setup and use gitlab container registry to implement, test build and deploy your code automatically with Docker.
We are going to use a simple application called Gordan to prevent creating a lambda function and triggering actions which involves time taking and repetitive steps.