Press ESC to close

Web Development

Integrate Mako Templates with Django

The premise behind a template language is that the language is “embedded” within some other master document. It is a language that allows for the definition of placeholders that are going to be replaced later on in the design process. Templates allow for the definition of placeholders that will later be filled in and replaced with actual content. There is a wide range of capabilities that come packaged as a part of most modern, web-based templating languages. It’s possible, for instance, to loop through information and provide conditional logic within a template! Mako is one such templating language that is…

Add Multiple Languages in Django

Internationalizing your website is a good idea but it can be a difficult process. Thankfully there are tools to help. This blog will look at how we can use gettext to add multiple languages in Django. We will cover topics such as: why you may want to internationalize and how you can use gettext to simplify the process. What is Internationalization & why you should use it? Internationalization is a mechanism of software development that enables an application to support other languages, character sets, or both. To accomplish this, an application must be able to contain locales that contain translations…

Add CKEditor in Django Template

In a world where time is in ever-diminishing supply, it’s often beneficial to use tools that save us the legwork required when working with content creation. One of those tools is WYSIWYG (What You See Is What You Get) editor which makes it easier for people who don’t know how to code their pages. This way we can spend more time focussing on ideas and less time fiddling around with formatting to make the content look aesthetically pleasing. It allows people without technical experience to quickly upload images and make links between pages using a visual interface which saves everyone…

How to Deploy Flask API on Heroku?

Heroku is a container-based cloud Platform as a Service (PaaS). Developers use Heroku to deploy, manage, and scale modern apps. It provides a choice of four infrastructure providers. It uses language-specific build packs. And it hosts apps written in any language. Heroku was first deployed in 2007, and in 2008 it was released as open-source. Since then Heroku has grown to be a key player in the cloud industry, today offering a wide range of products and services to help developers. In this tutorial, I’m going to show you how to deploy your Flask API to Heroku. Web hosting is…

How to Implement Google Login in Flask App

OAuth is one of the most widely used standards for authorizing access to a user’s data from one server to another server on the Internet. It is a protocol that allows users to grant third-party access to their server resources on a case-by-case basis. OAuth 2.0 is a more recent standard that provides a more secure and standardized approach. But in turn, has a workflow that is more complicated than OAuth 1.0’s, and thus it can be a little tricky to implement by yourself. There are a few different OAuth 2.0 authorization flows in existence. In this tutorial, we’ll learn how…

Create Websocket Server using Python and Tornado

Real-time applications like WebSockets are used each and every day, now more than ever with the rise of social media websites such as Twitter, Google+, and Facebook among others. Servers push updates to clients instead of polling for changes on a regular interval – this is what’s known as a “WebSocket”. All in all, it’s been a fantastic advancement but it has its drawbacks which have proved problematic for Python developers. This article will help you to create websocket server using Python. With the latest developments to the Python language and with the help of frameworks such as Tornado, handling Websocket…

Create News Aggregator Site using Python

There is power in presenting related info together, especially when that information comes from sites you already know, trust and use… Don’t you think? Content aggregation is the process of gathering together different content into one place so the user can find everything they need without having to look around for it. It’s a better option than scrolling endlessly through many different websites and trying to weed out the relevant info. In this article, you are going to learn how to create a simple, customized news aggregator site using python from scratch. We will walk through a simple tutorial that…

How to create a single-page web app with Flask

This tutorial will help you on how to create a single-page web app with Flask. It is one of the most popular web Python frameworks. It is considered a micro-framework, based on doing a single task at a time and doing it well. The power of Flask lies in its extensibility and it has a very powerful extension model. Flask supports many features such as an inbuilt development server, unit testing, and an extension mechanism so that we can add extra functionality. It can be used to build anything from a small static page to a large and complex application….

Web Application Programming in Pyramid Framework

Pyramid is a Python-based web framework. It was designed to simplify the creation of web applications. Many features make it easier to write complex software. The Pyramid framework follows the MVC software pattern. It basically separates the functions of each application to make it easier to design and allows for individual modification. In this tutorial, we’re going to learn web application programming in Pyramid framework using Python. With Pyramid, you’ll be able to create whatever comes to mind. Whether it’s a small application or a large project, the servers will rock! Pyramid will get you off to a great start…

Use These Frameworks of Python For Web Development

Today in the programming world you have various programming languages available for web development like PHP, JavaScript, Java, and many more. But here in this article, we are going to talk particularly about Python for web development. Well, Python is a famous programming language used for web development, scientific computing, Artificial intelligence, machine learning, and data science. So there are some reasons why users like python because it is quite simple and easy to learn. In addition, using Python you can make web applications at a fast rate. However, you must be familiar with what is Python if not, I…