Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Sending Emails Using Sendgrid on Heroku for a Django App
Integrate Sendgrid API to your Heroku app to deliver simplified emails like any notification emails, user signups etc. -
Python using Yield and Generators
Generators are memory efficient. They allow us to code with minimum intermediate arguments, less data structures. Generators are of two types, generator expressions and generator functions. Generators are helpful for reading large files, streaming. -
How to Implement Case Insensitive CSV DictReader in Python
In general use cases we upload the CSV files to the system to store huge amount of data by uploading single file. For example in e-commerce sites we just write thousands of products details in a CSV file and just upload it.In python we can read the data of a CSV file in 2 ways. One by using normal csv.reader and the other by using csv.DictReader. -
Set Up Travis CI For Django Project
Travis CI is a continuous integration service used to build and test applications hosted at GitHub. Here are simple steps to add CI to you django project. -
Integrate Twitter Social API into Django App
Integrating Twitter sign in (OAuth) in Django App, which includes1. Capturing username via Twitter Login2. Updating authenticated user current status on twitter(tweets). -
Create Excel File, Insert Image, Draw Bar Graphs in Excel Files in Python Using Xlsxwriter
Xlsxwriter is a python module through which we can write data to Excel 2007+ XLSX file format. In this blog post we learn to write data, insert images and draw graphs in the excel file. -
Get Count, Average, Min, Max Values from Model Field using Django Aggregate
To retrieve maximum, minimum or average values from group of rows we can use django Aggregation. For example to retrieve max price or avg price of product from catalogue. -
Building Documentation with Readthedocs
In this blog, I'm going to explain you how to write the Sphinx docs using reStructuredText to host in the Read the Docs.Installing Sphinx$ pip install SphinxAnd we have script called sphinx-quickstart in Sphinx that sets up a source directory and creates a default conf.py with the most useful configuration values from a few questions it asks you. Just run the following command-$ sphinx-quickstart -
Improving Page Speed Score in Google Page Score test- PART1
Google's Page Speed Insights measures the performance of a page for mobile devices and desktop devices. It fetches the url twice, once with a mobile user-agent, and once with a desktop-user agent.The Page Speed Score ranges from 0 to 100 points. A higher score is better and a score of 85 or above indicates that the page is performing well. -
Factory Boy - An Alternative for Fixtures
Factory Boy is a fixtures replacement tool. It allows you to use objects customized for the current test, while only declaring the test-specific fields. For testing the Django app, create a root directory named tests. Then create __init__.py, tests.py (to write your tests), factories.py (to write your model factories) in that directory. -
Extract Text with OCR for All Image Types in Python Using Pytesseract
Optical Character Recognition(OCR) is the process of electronically extracting text from images or any documents like PDF and reusing it in a variety of ways such as full text searches. In this blog, we will see, how to use 'Python-tesseract', an OCR tool for python. It will recognize and read the text present in images. It can read all image types - png, jpeg, gif, tiff, bmp etc. It’s widely used to process everything from scanned documents. -
Improving Page Speed Score in Google Page Score Test- PART2
In our previous blog post we got an idea of what are the things that Google's Page Speed Insights will take into count to give page score, now in the present blog post we'll get to know what are the techniques we can use to improve the page score. -
Getting Started with the IPython Notebook
IPython is a set of tools developed to make it easier for the programmers to work with Python and data. IPython provides extensions to the Python programming language that make working interactively convenient and efficient. IPython Notebook lets you write and execute code, analyze data in your web browser. -
Python Arrow to Show Human Friendly Time
Arrow is a python library and command-line tool to genrerate, manipulate dates, times, timestamps.use of arrow:With the use of arrow, we can also create, manipulate, format and convert dates, times, and timestamps, convert timezones, generates time spans, ranges, floors and ceilings with a less code. -
Configuring and Testing Load Balancer in AWS EC2
When You have an application that is serving Huge Customer Base, so will be your Traffic. Sometimes The Application stops responding. We can use load Balancer in cases like this which distribute the Traffic it receives between the multiple VPS running the same application. AWS Professional Services helps to scale your application as your business grows. -
Customize and Embed Vimeo Videos using Python Requests
Using python requests and vimeo endpoints it becomes very easy and simple to upload our videos and customize them.Vimeo Access token:1. Create an account at vimeo, vimeo has different levels of account, so based on your requirement signup for suitable account.(This article assumes pro account)2. After you log in, create an app and generate token based on your requirement like editing, uploading, view etc.. -
Creating Elastic Search Cluster (EC2, Cloud-AWS Plugin)
While handling Large amounts of data with elastic search, you may run out of server capacity or compute power, Forming an Elasticsearch cluster will reduce the load distribution. In Single, ElasticSearch Instance endpoint acts as Data Node + Master Node + Client Node. -
Working with Python Collections Part 1
Python Collections - named tuple is to access by the names specified and deque is to append and pop the elements from both sides of queue are explained with real time examples in part 1 of collections series -
Paginating S3 Objects using Boto3
When using Boto you can only List 1000 objects per request. So to obtain all the objects in the bucket. You can use s3 paginator. To use paginator you should first have a client instance -
Sending SMS, MMS using Twilio
A simple Tutorial on sending SMS and MMS in python using Twilio. In this tutorial you will learn how to send SMS, MMS and checking sms status. -
Python to Debian package: Simple, Easy and Fast
Packaging python script to debian follows strict instructions, using the following instructions, most of the steps can be skipped hence making it easy and fast.If you like video goto https://www.youtube.com/watch?v=a9GzDZB5VeU. This video doesn't show setup.py file creating which is required, but excluding that portion everything is same as below. -
How to Setup Custom Domain for Amazon Cloudfront
Instead of cloudfront default domain, we can customize it usinh cdn. ex: cdn.sitename.com. If you are struggling with any AWS related services contact our certified AWS Consultant to move your business smooth. -
Deploying Django project on Elastic Beanstalk
This section focuses on how to setup and deploy a Django application to Amazon Web Services(AWS). -
Understanding ReactJs Component, State and Props
ReactJs is popular Java script library for building User Interface. It's components are reusable and efficiently manages the data that changes over time. If require any support then contact our ReactJs consultingIn this article I am discussing Component, State, Props. -
How to Access EC2 Instance even if PEM File is Lost
Amazon Web Service is the market leader for cloud systems, giving an option to select specific AWS professional services with in their budget. EC2 instance can help in data recovery and many such features, makes AWS best in this trending cloud environment.Accessing the EC2 instance even if you loose the pem file is rather easy.First, create a new instance by creating new access file, call it 'helper' instance with same region and VPC as of the lost pem file instance.Now stop the lost pem file instance. Remember not to terminate instance but to stop it.Goto EBS volumes, select the root volume of the lost pem file instance and detach.Now again select the detached volume and this time you have to attach this volume to helper instance which we created before. Since helper instance already has a root volume by default as /dev/sda1, the newly attached volume will be secondary(eg: /dev/sdf).Login to your helper instance with its pem file.Execute below commands: