Saturday, 27 July 2013

Save file from memory to disk in django

Get file from memory and save into temp directory of OS in django This article basically for saving the file from memory to temporary directory in django. Here is the sample code. from django.core.files.storage import default_storage from django.core.files.base import...

Thursday, 18 July 2013

Implementation of PUT and DELETE in pycurl

Implementation of PUT and DELETE in pycurl Through this post explaining about the usage of PUT and DELETE in pycurl. import pycurl import json """ Here is the sample example of curl which is using PUT and DELETE curl -XPUT localhost:9200/tweets/tweet/1 -d '{user:...

Wednesday, 10 July 2013

Monday, 8 July 2013

Install pyCurl

Install pyCurl in your virtual environment   An issue is coming while installing pyCurl to virtualenv so here is the solution for the same. By following these steps, its possible to overcome from this problem Here we gooo..........(pyenv)anupam@anupampc:~/workspace/rocksocialrest$...