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.

How to Use Nested Formsets in Django

Django Formsets manage the complexity of multiple copies of a form in a view. By using formsets, you can know how many forms were their initially, which ones have been changed, and which ones should be deleted. In this blog post, we'll explain how nested formsets are used in django

How to Convert XML Content into Json Using XMLtodict

We need to process large amounts of data to get the desired results from XML file. xmltodict will help you to process, give JSON formatted data within a less span of time. In this blog post, we'll explain to you how to use in a django project.

How to Add a Custom Managers in Django

Django Custom Managers - A Manager is the interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application. You can use a custom Manager in a particular model by extending the base Manager class and instantiating your custom Manager in your model. There are two reasons you might want to customize a Manager: to add extra Manager methods, and/or to modify the initial QuerySet the Manager returns.

Using Python Weasyprint Generate HTML to PDF in Django

WeasyPrint is to combine multiple pieces of information into an HTML template and then converting it to a PDF document.

How to Create Thumbnail Image in Django Templates Using Sorl-Thumbnail?

Sorl thumbnail is the package that is being widely used to generate thumbnails in Django. It will create a thumbnail of a given size for the given image, which won't work out in the case of responsive designs. Html5's 'srcset' attribute is the solution for this problem to load proper images to the corresponding resolutions, whose thumbnails are generated with sorl thumbnail.

Deploying Your Django App on Heroku

Heroku is a platform as a service (PaaS) that enables developers to build and run applications entirely in the cloud.
1. installation
2. Creating and Deploying app.
3. Dependencies Used

Django Template Language Intro

We can write the required logics based on programming[python] syntax in models and views but, when we want to write simple logics we should follow the django's template syntax, because programming[python] syntax is not allowed.

Using Gitlab API, Integrating Gitlab in Django Project for Authentication and Access

This is a simple way to integrate gitlab authentication in your django apps.

We can get user verified email id, general information, git lab URL and token from Gitlab API.

These Following steps are needed for Gitlab integration:

1. creating git lab app
2. Authenticating user and getting an access token.
3. Get user information, git lab URL using an access token.

Integration of Linkedin API in Python Django

Using Linkedin integration, we can get the user's verified email id, general information, and work history in less span of time, and a user can also share articles.

These Following steps are needed for Linkedin integration:
1. Creating a LinkedIn app
2. Authenticating the user and getting an access token
3. Get user information, and work history using the access token

Understanding Checkout Flow in Django Oscar

Explaining Django Oscar checkout flow.