IntroductionDjango is a Python web framework that is both free and open source.Why Use Django?It’s very fast.Comes with a lot of pre-existing features like user authentication, site maps, RSS feeds.It is very secure and prevents a lot of security mistakes like SQL Injection, cross−site scripting, clickjacking etc.It is very scalable and thus can be used even when the network traffic is exceedingly high.Now that you know why we would be using Django to build our web application. Let us start setting up the ground work for it.Setting up an environmentWhile building our web application, we will be using various packages ... Read More
IntroductionBeing a programmer it is essential to learn to use databases in our applications to store, retrieve, manipulate, and delete data with ease. Python comes with the SQLite package preinstalled with it, using which we can create and manipulate SQLite databases.SQLite databases are written in a single file and are hence are easier to use and access. You can easily manipulate the data within and hence is very easy for data analysis. It is very simple and easy to setup and use.Getting StartedNow that you know, what SQLite is and why we use it, let us get started with how ... Read More
IntroductionIn Python, we use the tkinter library to create GUI components and craft better user interface.In this article you will learn methods to build a simple GUI based calculator application.Getting startedBefore we jump into it, there are a few things we need to get organised first.Let us start by downloading Python’s imaging library that we will be using to get images from our local system. In order to install PIL(Pillow), launch you terminal and type the command below.pip install PillowNow that you have the package installed. You will have to download icons needed for the calculator.You can go on Google ... Read More
IntroductionThe time library in Python is used to obtain time in the real world and perform various tasks related to it. You can even manipulate execution time using this module.Getting StartedThe time module comes packaged with Python. This means you do not have to install it separately using the PIP package manager.In order to use its various functions and methods, you must first import it.import timePrinting current local timeIn order to print the current local time, we will be using the ctime() function.But firstly, we must obtain the number of seconds since epoch. That is, the number of seconds since ... Read More
IntroductionThe pydoc module automatically generates documentation from Python modules. The documentation can be saved as pages of text on the console, displayed on the web browser, or even as HTML files.In this article you will be learning methods to view these documentations in various cases and even learn about docstrings that help you create your own documentation for your python scripts.Now that you know the use of pydoc, let us get started.Getting StartedThe pydoc module comes packaged along with Python, which means you don’t have to download and install it separately.In order to access pydoc, you can must first import ... Read More
IntroductionWe will be using the pyperclip module in order to copy and paste content to the clipboard. It is cross−platform and works on both Python 2 and Python 3.Copying and pasting from and to the clipboard could be very useful when you want the output of the data to be pasted elsewhere in a different file or software.Getting StartedThe pyperclip module does not come packaged with Python. In order to access it, you must first download and install it. You can do this using the PIP package manager.Launch your terminal and type the command below to install pyperclippip install pyperclipOnce ... Read More
IntroductionWe use the urllib.request module in Python to access and open URLs, which most often use the HTTP protocol.The interface used is also very simple for beginners to use and learn; it uses the urlopen function which can fetch various URLs using a variety of different protocols.You will get a better understanding of what we are working with, once we start using its various functionalities. So, let us get started.Getting StartedThe urllib library comes packaged along with Python. So, you do not need to install it separately, but in case you want to add it to your environment and you ... Read More
By changing the text-color and background color of a page, we can add dark/light mode for our website.SyntaxThe following syntax can be used to apply dark mode.Selector { color: white; background-color: black }Example Live Demo div { font-size: 1.4em; text-align: center; } .dark { color: white; background-color: black; } ... Read More
By specifying grayscale value to the filter property of CSS we can create a black and white image. filter property can be used to apply special effects like blur, drop-shadow to images.SyntaxThe syntax of CSS filter property is as follows −Selector { filter: grayscale(100%); -webkit-filter: grayscale(100%); }ExampleThe following examples illustrate CSS filter property. Live Demo img { margin: 2%; border-radius: 25%; } img:nth-of-type(even) { filter: grayscale(100%); -webkit-filter: grayscale(100%); } This gives the following outputExample Live Demo img { margin: 2%; } img:nth-of-type(odd) { filter: grayscale(100%); -webkit-filter: grayscale(100%); } This gives the following output
Using the CSS min() function, we can create a responsive logo in our webpages. It allows us to specify a minimum value to a CSS attribute.SyntaxThe syntax of CSS min() property is as follows −Selector { attribute: min(/*value*/, /*value*/); }ExampleThe following examples illustrate CSS min() property. Live Demo img { float: left; height: min(40vw, 384px); margin: 3%; } ... Read More
 
 Data Structure
 Data Structure Networking
 Networking RDBMS
 RDBMS Operating System
 Operating System Java
 Java MS Excel
 MS Excel iOS
 iOS HTML
 HTML CSS
 CSS Android
 Android Python
 Python C Programming
 C Programming C++
 C++ C#
 C# MongoDB
 MongoDB MySQL
 MySQL Javascript
 Javascript PHP
 PHP 
		