Skip to main content

Posts

Showing posts from 2019

How to deploy python script on AWS

In this tutorial we are going to learn how to deploy python script on AWS lambda service and store the resultant values in S3 Services AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume - there is no charge when your code is not running. With Lambda, you can run code for virtually any type of application or backend service - all with zero administration.  Just upload your code and Lambda takes care of everything required to run and scale your code with high availability.  You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

Configuration of Django with postgresql

In this tutorial we learn how to configure PostgreSQL with Django ,It has following advantages over other databases they are as follows PostgreSQL's write-ahead logging makes it a highly fault-tolerant database PostgreSQL source code is freely available under an open source license. This allows you the freedom to use, modify, and implement it as per your business needs. PostgreSQL supports geographic objects so you can use it for location-based services and geographic information systems PostgreSQL supports geographic objects so it can be used as a spatial data store for location-based services and geographic information systems To learn PostgreSQL, you don't need much training as its easy to use Low maintenance administration for both embedded and enterprise use  PostgreSQL can run dynamic websites and web apps as a LAMP stack option You will find complete code here  https://github.com/GanapathiAmbore/Django-with-postgresql 

Webscrapping using Python for Machine learning,Data Science

In this tutorial we are going to learn and discuss about how to perform web scrapping  using python Web scrapping:                  Web Scraping    is a technique employed to extract large amounts of data from websites whereby the data is extracted and saved to a local file in your computer or to aws s3 services in json format For web scrapping we will use the following libraries they are  Beautiful soup urllib Json for file storing you will find the complete source code here https://github.com/GanapathiAmbore/Webscrapping-using-python

How to configure Multiple databases in Django

The first step to using more than one database with Django is to tell Django about the database servers you’ll be using.  This is done using the  DATABASES  setting. This setting maps database aliases, which are a way to refer to a specific database throughout Django, to a dictionary of settings for that specific connection. The settings in the inner dictionaries are described fully in the  DATABASES  documentation. You will find the complete documentation here  The first step to using more than one database with Django is to tell Django about the database servers you’ll be using. This is done using the  DATABASES  setting. This setting maps database aliases, which are a way to refer to a specific database throughout Django, to a dictionary of settings for that specific connection. The settings in the inner dictionaries are described fully in the  DATABASES  documentation. Databases can have any alias you choose. However, the alias...

How to Deploy Django Application in AWS EC2

In this tutorial, we are going to launch an EC2 instance and deploy a Django app. I am going to use nginx, gunicorn in this process. Create an account in AWS and login to it Choose EC2 services for deployment Create a Key Pair Create an Instance for application by Open the Amazon EC2 console. In the navigation bar at the top of the screen, the current region is displayed. Click the region’s name to select the region for the instance. From the Amazon EC2 console dashboard, click Launch Instance. In the Select an existing key pair or create a new key pair dialog box, you can choose an existing key pair, or create a new one. you will find the complete source code here   Deployment of Django in AWS EC2