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


Fabric - Learning part1

Posted On 27 January 2014 By MicroPyramid

Using Fabric, we can configure Linux production server with uwsgi, nginx, vsftpd, mysql, mongodb, postfix, php, python tools, and other relevant pieces of software single-handedly . Using fabric, we can easiyt do perform operations on local, server like database backup, restore a backup etc.

Best Practices of Using Django Celery in Django Social Auth

Posted On 27 January 2014 By MicroPyramid

Best Practices of Using Django Celery in Django Social Auth.

Advanced Querying in MongoDB

Posted On 26 January 2014 By MicroPyramid

Advanced Queries of MongoDB: Inserting records to the database and retrieving data from database.
1. Wrapped Queries: Like, sort, limit, count.
2. Query Using Modifiers: set, increment, push,Set Elements in Array, AddToSet Modifier, each.

Imageview customization (circular image view)

Posted On 23 January 2014 By MicroPyramid

In android designing we'll come across ImageView. An ImageView displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the image so that it can be used in any layout manager, and provides various display options such as scaling and tinting. it is recommended to customise it through bitmaps(BitMap in android) instead of reshaping the image manually.

MySQL Setup and Security

Posted On 25 December 2013 By MicroPyramid

In This Post you'll learn to install and secure your MYSQL Setup to interact with external applications.

TMUX - Sharing terminal between Users

Posted On 02 December 2013 By MicroPyramid

More Often you wouldve come across sharing screens with applications like Teamviewer, Windows Remote Desktop Connection or remmina (if you're a linux user). But if you want to share only your terminal, you can look upto Tmux.

Custom Decorators To Check User Roles And Permissions In Django

Posted On 17 November 2013 By MicroPyramid

A decorator is a function that takes another function and returns a newer,prettier version of that function.

To know more about decorators in python see here https://micropyramid.com/blog/programming-with-python-decorators/

The most common use of a decorator is the login_required. This decorator is used in conjunction
with a view that restricts access to authenticated users only.

Implement search with Django-haystack and Elasticsearch Part-1

Posted On 05 November 2013 By MicroPyramid

Haystack works as search plugin for django. You can use different back ends Elastic-search, Whose, Sorl, Xapian to search objects. All backends work with same code. In this post i am using elasticsearch as backend.

pip install django-haystack

Django hosting on Nginx with uwsgi for high performance

Posted On 04 October 2013 By MicroPyramid

Quick guide to host django application using uwsgi and nginx which offers better resource utilization and performance.

How to index binary files in django haystack

Posted On 27 September 2013 By MicroPyramid

Now we are going to index text content which is stored in structured files such as PDFs, Microsoft Office documents, images, etc using haystack and sorl's

In order to read and store the data, we can use SearchBackend.extract_file_contents(self, file_obj) method. It takes the file object, returns a dictionary containing two keys: metadata and contents. The contents value will be a string containing all of the text which the backend managed to extract from the file contents.

Need any Help in your Project?Let's Talk