A blog about Django, Python, mongo DB, LINUX, Amazon Web Services


Publishing Python Modules with PIP via PyPi

Posted On 02 August 2012 By MicroPyramid

We'll install so many packages in our day to day python development. Now in this blog post, we'll try to know how to create our own python module installable with PIP. PyPI is the default Package Index for the Python community. In this post will explain about how to develop and publish python packages to make those available to every one with develop pip install python packages.

Django Custom Management Commands

Posted On 21 July 2012 By MicroPyramid

In Django project, We could manage by executing some commands which could be invoked through the manage.py.

For example:
# Sync database
python manage.py syncdb

# Start the webserver
python manage.py runserver

Understanding 'GenericForeignKey' in Django

Posted On 06 July 2012 By MicroPyramid

In some cases the we might want to store generic model object, rather a particular specific model as 'ForeignKey'. Generic model object means adding a foreign key from one of your own models to ContentType allows your model to effectively tie itself to another model class

Basics of Django messages framework

Posted On 25 June 2012 By MicroPyramid

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.

Posted On 05 May 2012 By MicroPyramid

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.

Django Raw Sql Queries

Posted On 19 April 2012 By MicroPyramid

When your model query API don't go well or you want more performance, you can use raw sql queries in django. The Django Object Relational Mapper (ORM) helps bridge the gap between the database and our code Performing raw queries.

Facebook integration in your website

Posted On 14 April 2012 By MicroPyramid

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.

Basics of Django templates

Posted On 22 March 2012 By MicroPyramid

Django template engine comes as part of django framework and its very easy, extensible and handy to develop complex web applications with simplest efforts. Lets see basics of django template engine.

A template is a text document, or a normal Python string, that is marked-up using the Django template language. Template system in Python can be used in the following way:

Django Model managers and properties

Posted On 06 February 2012 By MicroPyramid

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

Posted On 02 January 2012 By MicroPyramid

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.

Need any Help in your Project?Let's Talk