Passwordless login allows a user to log in to the application without having to enter and remember the password. It uses One Time Password called OTP which is delivered to the user via SMS or email.
Facebook provides a service called Account Kit which is used to implement passwordless authentication. …
Creating CRUD interfaces with DRY patterns in Django.
In this tutorial, we will learn how to use Class-based views to create CRUD interfaces for any model.
At the end of this tutorial, we will be able to add, list, view, update and delete a particular model(here
Book and the project is based on
library). This tutorial can be extended to create CRUD based interfaces for any model.
This blog post is about setting up a Django application which uses uWSGI as app server and Nginx as the web server.
We will assume the following dependencies about the environment.
For this project, we will use a Django application which shows the list of all marvel movies. It contains a single URL which looks like the following.
The code for the project can be found here.
Let’s assume that we have just launched a new instance and there is nothing set up on the instance. …
It started at school when I was desperate to win TCS-IT Wiz. Why?
But I never won it. Days passed and I made it twice on the front page of the newspaper because of my good results in both Secondary education exams. Later on, I bought my own laptop as well.
Migrations in Django are a way of propagating changes made in the model into the database schema.
Official Django docs summarize Migration as
Migrations are Django’s way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your database schema
Migrations were introduced as a built-in functionality in Django version 1.7. Migrations are created manually by running certain commands but they automate the task of applying changes to the database. We can create migration for any changes in the model, like
In an earlier post, we discussed various approaches to implement Autocomplete functionality. We came to a conclusion that Completion Suggester covers most of the cases required in implementing a fully functional and fast autocomplete. This post explains in detail about what is Completion Suggester and how to use them practically.
Completion Suggester is a type of suggester in Elasticsearch, which is used to implement autocomplete functionality. It uses an in-memory data structure called Finite State Transducer. Elasticsearch stores FST on a per segment basis, which means suggestions scale horizontally as more new nodes are added.
What is Autocomplete ?
Let’s take a very common example. Whenever you go to google and start typing, a drop-down appears which lists the suggestions. Those suggestions are related to the query and help the user in completing his query.
Autocomplete as the wikipedia says
Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing
This blog post is about my experience and learnings for organizing an internal hackathon, particularly in an organization. It will cover various aspects ranging from designing a hackathon to its execution.
One of the most important thing while organizing a hackathon is its expectations. At the end of a hackathon, the value is being added to the organization. The value could be added in form of products or process setup or office renovation. …
EvalAI is a platform which helps AI researchers, students and data scientists to collaborate and participate in various AI challenges. The platform hosts various challenges, corresponding to which participants make their submission.
A submission is a prediction made against a Challenge Phase. It is processed using the evaluation script of a challenge, sometimes involving heavy computations.
A submission can be processed either asynchronously or synchronously.
Processing a submission synchronously will defer the response for the request until the processing is not complete. …
Forms in HTML are a collection of input elements that allows us to perform dynamic actions on a website. Django models these forms as an object of Form class. A form is responsible for taking input from a user, validating and cleaning data and taking necessary action as required.
A formset is a collection of Django Forms. Each formset has a management form which is used to manage the collection of forms contained in it.
Formset stores data like the total number of forms, the initial number of forms and the maximum number of forms in a management form. So…