Oct 25, 2019Django : Two Factor AuthenticationTwo-factor (2FA) or multi-factor authentication (MFA) is an additional security layer for your business — helping to address the vulnerabilities of a standard password-only approach. TOTP TOTP stands for Time-based One-Time Password. It’s a fairly simple algorithm that involves combining a shared secret key with the current time to generate a…API18 min read
Sep 24, 2019Django : WebSockets and ChannelsWebSockets is a technology that allows for opening an interactive communications session between a user’s browser and a server. With this technology, a user can send messages to a server and receive event-driven responses without requiring long-polling, i.e. without having to constantly check the server for a reply. Think about…Python5 min read
Aug 20, 2019Django : Handling Periodic Tasks With CeleryWhat is Celery Beat? It combines Celery, a well-known task delegation tool, with a nifty scheduler called Beat. It can help you manage even the most tedious of tasks. As we know the work of software developers is filled with generating periodic reports, handling vast imports or exports, backups, frequent…Django6 min read
Jul 28, 2019Django : Task Scheduling with CeleryAutomation in Django is a developer’s dream. Tedious work such as creating database backup, reporting annual KPI, or even blasting email could be made a breeze. Through Celery — a well-known software in Python for delegating task — such action has been made possible. Celery is a task queue based…Django5 min read
Jun 9, 2019PostgreSQL : A Small IntroductionPostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. It is also one of the most used databases in the industry for production and deployment. Installation: Here we’ll install PostgreSQL 9.5.11 on Ubuntu…Ubuntu3 min read
May 14, 2019Django : Redis 101Redis is a versatile tool that can be very useful in our Python/Django projects.Through this blog my goal is to explain how Redis can be used in multiple different scenarios, with real examples of building counters, leaderboards, analytics’ tools, and a recommendation engine. The blog showcases practical examples of how…Redis7 min read
Apr 8, 2019Python : Threading vs MultiprocessingBoth the threading and multiprocessing modules in python aim to do the same thing and that is to do a number of things at the same time, however the way that threading module goes about it and the multiprocessing module goes about it is very different. Before going deep into…Programming4 min read
Apr 2, 2019Django : Custom User Model & Allauth for OAuthDjango ships with a built-in User model for authentication, however the official Django documentation highly recommends using a custom user model for new projects. The reason is if you want to make any changes to the User model down the road–for example adding a date of birth field–using a custom…Django8 min read
Mar 29, 2019Django QuerySets & Code OptimizationFrom all the time i have been coding,i learned one thing and that is the code/program we write first is not always the best or the optimal solution. Django QuerySets are no exception to this . If a web request is stretching into seconds, 99% of the time the database…Python6 min read
Mar 23, 2019Django: Request/Response CycleA web application or a website revolves around the request-response cycle and Django applications are no exception to this. But it is not just a two step process. Our Django applications needs to go through various stages to return the end user some result. To understand the Django framework better…Django7 min read