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.

Basics of Django Messages Framework

In any web application we need to display notification messages to the end user after processing a form or some other types of his requests. To make this messaging system simple, django provided full support to cookie and session based messaging for both anonymous and authenticated users.

This messages framework is capable of storing messages in one request and retrieving those messages in the subsequent request. Every message has a tag based on its priority(info,warning and error).

Understanding Django Model Formsets in Detail and their Advanced Usage

Silmilar to the regular formsets, django also provide model formset that make it easy to work with django models. Django model formsets provide a way to edit or create multiple model instances within a single form. Model Formsets are created by factory method. The default factory method is modelformset_factory(). It wraps formset factory to model forms.

Facebook Integration in your Website

Using Facebook integration, we can get the user verified email id, general information, friends, pages, groups and you can post on his profile, facebook pages, groups with out user entering a details in a less span of time.

Django Model Managers and Properties

Django model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table. And an instance of that class represents a particular record in the database table. Django Manager is the interface through which database query operations are provided to Django models.By default, Django adds a Manager with the name "objects" to every Django model class.

Add Captcha to Django Web Page Using Python-reCaptcha

Python-reCaptcha is a pythonic and well-documented reCAPTCHA client that supports all the features of the remote API to generate and verify CAPTCHA challenges. To add into your django project, you need captcha public, private keys are required.

Django Forms Basics Explained

Django forms is powerful module to help django application development in rendering html from model, validate input from http request to model specifications. And we can extend the module to suit our exact need. Lets see basics of django forms. Forms are a collection of fields that knows how to validate itself,Form classes are created as subclasses of django.forms.Form

How to Drag and Drop Multiple Files Using Dropzone.js

Dropzone is a free open source library which makes a HTML element as dropzone, which enables user to drag files on to that area and the files dragged will be uploaded using Ajax.

JavaScript Read Full Post

How to Use JQuery Mobile Touch Events

JQuery mobile touch events - Event is nothing but all possible and different actions of visitors that a webpage can respond to. We have the ability to create dynamic web pages by using events. In general, Events are actions that can be detected by our Web Application.

JavaScript Read Full Post

Using CasperJS to Scrape Website Data

CasperJS can be used for Navigation Scipting, Scraping and testing. In this Tutorial we will see how to scrape data from website using CasperJS and PhantomJS 1.9

JavaScript Read Full Post

JQuery Mouse Events and Touch Events

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. Events handling and manipulating are different for mouse and touch events. You can use any custom function to do whatever you want to an event when triggered. These custom functions you wrote to happen while an event triggered are called Event handlers.

JavaScript Read Full Post