Satishgandham - satishgandham.com - Satish Gandham

Latest News:

Djnago | Set the defulat ordering rule for queries in the models 5 Jun 2013 | 07:22 pm

Though we can specify order explicitly in queries like below Posts.objects.order_by('published') it is repetitive and most of the times we will want to order by a particular field. We can specify the ...

Restrict Django Templates From Deleting Data. 5 Jun 2013 | 11:27 am

Django allows method calls inside template system. Though this is an useful feature, some of the methods will have side effects. Mostly the ones that alter data. Say, for instance, you have a UserAcco...

What do Dollar and Caret ( $ and ^) sign in Django urls mean? 5 Jun 2013 | 09:57 am

$ and ^ are regular expression characters that have a special meaning: the caret means “require that the pattern matches the start of the string,” and the dollar sign means “require that the pattern m...

Mongod error | exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid 11 Apr 2013 | 10:08 am

I got this error while trying to start mongodb on amazon ec2. Running this command in the terminal solved the problem. export LC_ALL=C I don’t have any idea about what it means at this time except tha...

Right way to break Django code for debugguing 19 Mar 2013 | 12:30 pm

Django traceback is a very helpful tool in Django development. It saves us from the boring tasking of writing print statements to track variables. Traceback doesn’t kick when there is no error.  There...

Where are python site packages located in MAC OSX Mountain Lion 5 Mar 2013 | 07:44 pm

Python site packages are located at Library/Python/2.7/site-packages

Get the number of documents in a MongoDB collection with unique/distinct values for a field 9 Sep 2012 | 07:16 pm

Some times we need to get the number of documents with a distinct/unique value. An example use case is in the classic blog example. Get the number of authors with at least one post. Get the number of ...

A complete guide to Integrating MongoDB with Elastic Search 3 Sep 2012 | 09:32 pm

After almost two weeks and several re-installs and fresh installs, I finally got to integrate mongodb and elastic search. Here is a step by step procedure on how to integrate them. If you follow this ...

Error whil creating super user in django1.4 on MAC 22 Apr 2012 | 04:58 pm

I got the following error while trying to create a super user from shell for django1.4. This problem was rectified by running this command in terminal before adding the user export LANG="en_US.UTF-8...

How to start stop apache on MAC OSX 14 Apr 2012 | 05:29 am

start Apache apachectl start Stop Apache apachectl stop Restart Apache apachectl restart If the above commands don’t work, try these /etc/init.d/httpd start /etc/init.d/httpd stop /etc/init.d...

Recently parsed news:

Recent searches: