Many to Many Relationships with Flask-SQLALchemy

Many to Many Relationships with Flask-SQLALchemyIn my earlier post I described how to create  a One to Many relationship with Flask-SQLAlchemy . In this post I will describe how to create a Many to Many relationship with Flask-SQLAlcehmy . Defining a Many to Many relationship. A  Many to Many Relationship between two entities can be defined as one in which a... Read More »

One to Many Relationships with Flask-SQLAlchemy

One to Many Relationships with Flask-SQLAlchemyWhile building database applications with Flask-SQLAlchemy, you will come across a situation where you need to define a relationship between two database tables. While creating blogging application I came across such a situation where I had to define a One to Many Relationship between a blog post (Post Table) and post comments(Comments Table). In order... Read More »

Python PostgreSQL example

Python PostgreSQL exampleIn this post I will describe how you can connect to a  PostgreSQL database  with Psycop2 , SQLAlchemy and Flask. Software versions Python 3.4 PostgreSQL 9.3 Flask 0.10.1 Flask-SQLAlchemy 2.0 psycopg2 2.6 SQLAlchemy 0.9.9 Ubuntu Linux 14.4 Install PostgreSQL 9 on Ubuntu Linux Psycop2 Psycop2 is  a PostgreSQL adapter for python. You don’t need Flask or SQLAlchemy to... Read More »

Launching your Flask web application on Linux with Gunicorn and Nginx

Launching your Flask web application on Linux  with Gunicorn and NginxFlask is a web framework for python, Flask tackles Routing, HTML template rendering, Sessions etc. If you are building web applications on Linux then I highly recommend using Flask, here’s how quickly you can build an app with it on Linux. The inbuilt server with Flask is good for development, but sooner or later you... Read More »

How to install Selenium on Linux and automate your web tests

How to  install Selenium on Linux and automate your web testsSelenium is a web testing toolkit that allows you to test a web application in any browser of your choice. It does this with the help of a software called WebDriver which allows you to emulate a web browser and test your web application in it. In this post I am going to show you... Read More »

How to start building websites on Linux with Django

How to start building websites on Linux with DjangoDjango is a web framework for python. It provides you with the basic components that are required to build your website like HTML templates, User Authentication, Web Server etc. In this tutorial I will describe how you can install Django 1.7 on Linux with the latest version of Python and PostgreSQl. Software Versions Linux(CentOS 6.5)... Read More »

How to build CRUD app with Python, Flask, SQLAlchemy and MySQL

In this post I will briefly describe, how you can you build a database driven CRUD (Create, Read, Update, Delete) app on Linux with Python, Flask, SQLAlchemy and MySQL. I used this process to create a blog and hence the examples below will describe how to store and modify posts in a MySQL database. You... Read More »

Managing Linux server configs with the SaltStack

Managing Linux server configs with the SaltStackI came across Salt while searching for an alternative to Puppet. I like puppet, but I am falling in love with Salt :). This maybe a personal opinion but I found Salt easier to configure and get started with as compared to Puppet. Another reason I like Salt is that it let’s you manage your... Read More »

Creating your first Linux App with Python 3 and Flask

Creating your first  Linux  App with  Python 3 and FlaskWhether playing on Linux or working on Linux there is a good chance you have come across a program written in python. Back in college I wish they thought us Python instead of Java, it’s fun to learn and useful in building practical applications like the yum package manager. In this tutorial I will take... Read More »

How to install an Opensource VPN Server on Linux

How to install an Opensource VPN  Server on LinuxOne of the most concerning thoughts I have while browsing, Is how can I ensure that my data remains private and secure ? In my search for answers, I came cross a number of ways in which you can remain anonymous like using a proxy website. But still using a third party service was not... Read More »