Add Game Titles to Published YouTube Video

Prachi Gupta
Updated on 05-Sep-2022 07:00:00

7K+ Views

Gaming, whether indoor or outdoor has always been a popular pastime, enjoyed by people of all ages. In today’s scenario playing video games on the computer, console or phone is everyone’s favourite pastime. There is a game for every age group and the biggest platform for sharing videos of games online is YouTube. On this platform, millions of videos are uploaded each day. Gaming videos, technical videos, educational videos, movies, documentaries, funny clips, and countless other categories are among the uploaded videos. The main purpose of uploading the game videos is to entertain the viewers and to help those players, ... Read More

Format a Float in JavaScript

Kumar Ishan
Updated on 05-Sep-2022 06:45:21

6K+ Views

In this tutorial, we will see how to format a floating point number to the desired format using JavaScript. Formatting a floating number means rounding the number up to a given decimal place. We will discuss in detail the various methods listed below− Math.round() Method Math.floor() Method Math.ceil() Method toFixed() Method toPrecision() Method Math.round() method The Math.round() method rounds a number to the nearest integer. We can use this method to format to the nearest integer and also with some decimals. To round with decimals, multiply the number by 10 power of the decimals and then round the ... Read More

What is Middleware in Django

Gayatri Jandhyala
Updated on 02-Sep-2022 14:33:50

5K+ Views

A middleware component is nothing more than a Python class that follows a specific API. In Django, middleware is a small plugin that runs in the background while the request and response are being processed. The application's middleware is utilized to complete a task. Security, session, csrf protection, and authentication are examples of functions. Django comes with a variety of built-in middleware and allows us to develop our own. The Django project's settings.py file, comes equipped with various middleware that is used to offer functionality to the application. Security Middleware, for example, is used to keep the application secure. There ... Read More

What is CSRF Token in Django

Gayatri Jandhyala
Updated on 02-Sep-2022 14:31:35

13K+ Views

CSRF stands for Cross Site Request Forgery, and it is said to occurs when a malicious Web site deceives users into unwillingly and unknowingly loading a URL from a site where they've previously been authenticated, thus exploiting their status and also putting the data at risk. To understand what the CSRF attack exactly is, let us look into an example. Assume you're logged into csrfexample.com's webmail account. The Log Out button on this webmail site leads to the URL csrfexample.com/logout. That is, all you have to do to log out is visit the page csrfexample.com/logout. A rogue site can force ... Read More

What is Django ORM

Gayatri Jandhyala
Updated on 02-Sep-2022 14:30:08

19K+ Views

ORM stands for Object Relational Mapper. The main goal of ORM is to send data between a database and models in an application. It maps a relation between the database and a model. So, ORM maps object attributes to fields of a table. The main advantage of using ORM is that it makes the entire development process fast and error-free. Essentially, it eliminates the need to write SQL code. Suppose there is a python object student with certain attributes as you can see below. Model student: Id Rollno Name ... Read More

Protect Against Cross-Site Scripting (XSS) in Django

Gayatri Jandhyala
Updated on 02-Sep-2022 14:28:21

591 Views

Web applications that fail to appropriately escape user-submitted text before rendering it into HTML are vulnerable to cross-site scripting (XSS). An attacker can use this to inject arbitrary HTML into your Web page, commonly in the form of a element. XSS attacks are frequently used by attackers to steal cookie and session information, as well as to fool users into providing personal information to the wrong person. Phishing is another term for this. We will look at a common case because this type of attack can take many different shapes and has nearly unlimited variations. Let us consider simple ... Read More

Make Django Admin More Secure

Gayatri Jandhyala
Updated on 02-Sep-2022 14:20:02

513 Views

Django is a web framework that is popular for its ease of usage. Django like many other web frameworks comes equipped with a lot of features and functionalities that can be used without much code to write. Django-admin is one of those features. The automatic admin interface is one of Django's most powerful features. It reads metadata from your models to create a model-centric interface for trusted users to manage content on your site. The admin's recommended use is limited to the internal management tool of an organization. It is not meant to be the foundation for your complete front ... Read More

Add Security to Your Django Website

Gayatri Jandhyala
Updated on 02-Sep-2022 14:07:27

620 Views

Communication through the web happens through a HTTP connection and more often than not you never know who is on the other end. It may be one of your users, but it could also be a malicious hacker searching for an opportunity. Any data from the browser, regardless of its source, should be processed with caution and checked for threats. This includes data from Web forms as well as information from HTTP headers, cookies, and other request metadata. As Web developers, we have a duty to do what we can to combat these forces of darkness. Every Web developer needs ... Read More

Add Validation to Your Django Project

Gayatri Jandhyala
Updated on 02-Sep-2022 14:04:13

540 Views

Validation is the process through which the computer automatically checks to ensure that the data entered is sensible and reasonable. It does not provide if the data entered is accurate or not. Many of us are familiar with email or phone validation that is usually a part of most websites. When we enter the email address in the wrong format or if the phone number entered does not contain 10 digits, a warning is usually displayed to enter the output in the accepted format. This is validation. Most developers add validation to their projects to ensure that the data they ... Read More

Upgrade Django to a Newer Version in Anaconda

Gayatri Jandhyala
Updated on 02-Sep-2022 14:02:38

626 Views

Anaconda is very popular framework used for python development. It enables users to develop web applications, desktop application, data analysis programs, machine learning applications and more. Another great feature of anaconda is that it enables users to create virtual environments, so installing a package or library only in that environment saves a lot of space and time. Django is widely used for python web development due to its ability to ease server-side scripting. To install Django in your anaconda environment, you can use the following command. conda install django To create a virtual environment and install Django inside it, ... Read More

Advertisements