Python
An Introduction to Python
Python is a popular object-oriented programing language having the capabilities of high-level pro...
Strengths and Weaknesses of Python
Every programming language has some strengths as well as weaknesses, so does Python too. Strengt...
Installing Python
For working in Python, we must first have to install it. You can perform the installation of Pyth...
Using Pre-packaged Python Distribution: Anaconda
Anaconda is a packaged compilation of Python which have all the libraries widely used in Data sci...
Why Python for Data Science?
Python is the fifth most important language as well as most popular language for Machine learning...
Components of Python ML Ecosystem
In this section, let us discuss some core Data Science libraries that form the components of Pyth...
Types of Cells in Jupyter Notebook
The following are the three types of cells in a jupyter notebook − Code cells − As the name sugg...
Django Tutorial
Django is a web development framework that assists in building and maintaining quality web applic...
Django - Basics
Before you proceed, make sure that you understand the basics of procedural and object-oriented pr...
Django - Overview
As you already know, Django is a Python web framework. And like most modern framework, Django sup...
Django - Environment
Django development environment consists of installing and setting up Python, Django, and a Databa...
Django - Creating a Project
Now that we have installed Django, let's start using it. In Django, every web app you want to cre...
Django - Apps Life Cycle
A project is a sum of many applications. Every application has an objective and can be reused int...
Django - Admin Interface
Django provides a ready-to-use user interface for administrative activities. We all know how an a...
Django - Creating Views
A view function, or “view” for short, is simply a Python function that takes a web request and re...
Django - URL Mapping
Now that we have a working view as explained in the previous chapters. We want to access that vie...
Django - Template System
Django makes it possible to separate python and HTML, the python goes in views and HTML goes in t...
Django - Models
A model is a class that represents table or collection in our DB, and where every attribute of th...
Django - Page Redirection
Page redirection is needed for many reasons in web application. You might want to redirect a user...
Django - Sending E-mails
Django comes with a ready and easy-to-use light engine to send e-mail. Similar to Python you just...
Django - Generic Views
In some cases, writing views, as we have seen earlier is really heavy. Imagine you need a static ...
Django - Form Processing
Creating forms in Django, is really similar to creating a model. Here again, we just need to inhe...
Django - File Uploading
It is generally useful for a web app to be able to upload files (profile picture, songs, pdf, wor...
Django - Apache Setup
So far, in our examples, we have used the Django dev web server. But this server is just for test...
Django - Cookies Handling
Sometimes you might want to store some data on a per-site-visitor basis as per the requirements o...
Django - Sessions
As discussed earlier, we can use client side cookies to store a lot of useful data for the web ap...
Django - Caching
To cache something is to save the result of an expensive calculation, so that you don’t perform i...
Django - Comments
Before starting, note that the Django Comments framework is deprecated, since the 1.5 version. No...
Django - RSS
Django comes with a syndication feed generating framework. With it you can create RSS or Atom fee...
Django - Ajax
Ajax essentially is a combination of technologies that are integrated together to reduce the numb...
Flask Tutorial
Flask is a web application framework written in Python. Armin Ronacher, who leads an internationa...
Flask – Overview
What is Web Framework? Web Application Framework or simply Web Framework represents a collection...
Flask – Environment
Prerequisite Python 2.6 or higher is usually required for installation of Flask. Although Flask ...
Flask – Application
In order to test Flask installation, type the following code in the editor as Hello.py from flas...
Flask – Routing
Modern web frameworks use the routing technique to help a user remember application URLs. It is u...
Flask – Variable Rules
It is possible to build a URL dynamically, by adding variable parts to the rule parameter. This v...
Flask – URL Building
The url_for() function is very useful for dynamically building a URL for a specific function. The...
Flask – HTTP methods
Http protocol is the foundation of data communication in world wide web. Different methods of dat...
Flask – Templates
It is possible to return the output of a function bound to a certain URL in the form of HTML. For...
Flask – Static Files
A web application often requires a static file such as a javascript file or a CSS file supporting...
Flask – Request Object
The data from a client’s web page is sent to the server as a global request object. In order to p...
Flask – Sending Form Data to Template
We have already seen that the http method can be specified in URL rule. The Form data received by...
Flask – Cookies
A cookie is stored on a client’s computer in the form of a text file. Its purpose is to remember ...
Flask – Sessions
Like Cookie, Session data is stored on client. Session is the time interval when a client logs in...
Flask – Redirect & Errors
Flask class has a redirect() function. When called, it returns a response object and redirects th...
Flask – Message Flashing
A good GUI based application provides feedback to a user about the interaction. For example, the ...
Flask – File Uploading
Handling file upload in Flask is very easy. It needs an HTML form with its enctype attribute set ...
Flask – Extensions
Flask is often referred to as a micro framework, because a core functionality includes WSGI and r...
Flask – Mail
A web based application is often required to have a feature of sending mail to the users/clients....
Flask – WTF
One of the essential aspects of a web application is to present a user interface for the user. HT...
Flask – SQLite
Python has an in-built support for SQlite. SQlite3 module is shipped with Python distribution. Fo...
Flask – SQLAlchemy
Using raw SQL in Flask web applications to perform CRUD operations on database can be tedious. In...
Flask – Sijax
Sijax stands for ‘Simple Ajax’ and it is a Python/jQuery library designed to help you easily brin...
Flask – Deployment
Externally Visible Server A Flask application on the development server is accessible only on th...
Flask – FastCGI
FastCGI is another deployment option for Flask application on web servers like nginix, lighttpd, ...
Writing your first Django app, part 2
Let’s learn by example. Throughout this tutorial, we’ll walk you through the creation of a bas...
Database setup
Now, open up mysite/settings.py. It’s a normal Python module with module-level variables represen...
Creating models
Now we’ll define your models – essentially, your database layout, with additional metadata. Ph...
Activating models
That small bit of model code gives Django a lot of information. With it, Django is able to: Cr...
Creating a project
If this is your first time using Django, you’ll have to take care of some initial setup. Namely, ...
The development server
Let’s verify your Django project works. Change into the outer mysite directory, if you haven’t al...