Re: [BangPypers] Django pagination

2015-02-16 Thread ragsagar
-render. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- blog : blog.ragsagar.in mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com

Re: [BangPypers] Beginner to Django Framework

2013-10-08 Thread ragsagar
On Tue, Oct 8, 2013 at 11:50 AM, kracekumar ramaraju kracethekingma...@gmail.com wrote: Also look into djangobook.com. Don't follow djangobook.com. It is outdated! -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com

Re: [BangPypers] Beginner to Django Framework

2013-10-08 Thread ragsagar
On Tue, Oct 8, 2013 at 5:13 PM, Kartik Singhal kartiksing...@gmail.comwrote: On Tue, Oct 8, 2013 at 5:44 PM, ragsagar ragsa...@gmail.com wrote: Don't follow djangobook.com. It is outdated! It is, as it says on the homepage, but is still full of useful concepts that are very hard

Re: [BangPypers] Django url patterns help

2013-03-01 Thread ragsagar
without sharing the my_app.my_views.my_page or without explaining what logic you are doing over there. -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers mailing list

Re: [BangPypers] Python dictionaries, deleting elements while iterating.

2013-02-25 Thread ragsagar
converting it to list would be a better option. for key in list(dictionary): if dictionary[key] == 1: del dictionary[key] -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com

Re: [BangPypers] Python dictionaries, deleting elements while iterating.

2013-02-25 Thread ragsagar
. Using dictionary comprehension is the apt solution. I was just talking about the first solution you suggested. -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers

Re: [BangPypers] Django Jquey List View issu

2013-02-19 Thread ragsagar
, ragsagar ragsa...@gmail.com wrote: It would have better if you have shared the code using dpase or some pastebin, because it not that readable here. I am assuming your problem is this. After login, the index.html page is rendering but you cannot the see the list of items

Re: [BangPypers] Django Jquey List View issu

2013-02-18 Thread ragsagar
___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com

Re: [BangPypers] List compression imrpovement

2013-01-09 Thread ragsagar
On Wed, Jan 9, 2013 at 1:11 PM, vijay vnbang2...@yahoo.com wrote: 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] You don't have to do if bool(y%2==0), just if y % 2 == 0 is enough. -- blog : ragsagar.wordpress.com mail id : python -c print '@'.join(['ragsagar','.'.join([x