Innovate anywhere, anytime withruncode.io Your cloud-based dev studio.

MicroPyramidBlog

Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.

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.

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.

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.

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.

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.

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.

Django Hosting on Amazon EC2 with Wordpress on Same Domain

Configuring the Wordpress as subdirectory can be tricky. In this tutorial, we will Setup a Django Website alongside a WordPress blog. Our Site Structure will be

example.com ------------> Django Website
example.com/blog -----------> wordpress

Amazon Web Services Read Full Post

Generic, Functional Based and Class Based Views in Django REST Framework

Writing Different Types of Views in Django-Rest-Framework.Writing Different Types of Views in Django-Rest-Framework. Django-Rest-Framework(DRF) supports three different types of views. They are Function Based Views, Class Based Views / Generic Views, ViewSets

How to Customize Django Oscar Models, Views and URLs

In order to customize models, views and urls, you need to fork an Oscar core app in which model/view resides. Then you should be able to override any model/view classes.
Steps to fork/customize an app:

Google Plus API Integration with Django

Using GPlus integration by Django, we can get the user verified email id, general information, friends in a less span of time, and user can also share articles.