Re: [BangPypers] BangPypers completes 10 years

2015-08-14 Thread Arun Ravindran
This calls for a celebration! Who came up with the name BangPypers? A truly clever pun :) On Fri, Aug 14, 2015 at 10:50 AM, Ramdas S wrote: > Yes. I remember the motley crowd which assembled somewhere in MG Road hotel > on your call > > On Fri, Aug 14, 2015 at 9:09 AM, Anand B Pillai < > anandpi

[BangPypers] [ANN] Book on "Django Design Patterns and Best Practices" and Giveaways

2015-04-28 Thread Arun Ravindran
*** Promotional Post *** Hi, I am Arun Ravindran. I writes articles on Django at http://arunrocks.com . Recently my book titled "Django Design Patterns and Best Practices" <http://djangopatternsbook.github.io/> got published. It is written for intermediate and advanced Django

Re: [BangPypers] How to model these entities?

2015-03-25 Thread Arun Ravindran
Hi Abhaya, I believe you are on the right track. While I am not a big fan of singletons (you could use pass the object to each function explicitly), the rest of the design seems sound. You could model your architecture as model classes in Django in a straightforward way. In my opinion, the major

Re: [BangPypers] Good and practical resources to build Web Apps using Django

2015-03-16 Thread Arun Ravindran
I would be happy to help in any way, Aby. You can connect with me through my email id. On Mon, Mar 16, 2015 at 5:59 PM, Aby James wrote: > I had gone through Sliderule, but the Django specific course is a paid > course in Udemy and the Udacity Web Dev course doesn't use Django. > > On Mon, Mar 1

Re: [BangPypers] Compare two htmls for unittest

2015-03-14 Thread Arun Ravindran
Hi Amit, First, you need to consider why you need to compare the rendered HTML in the first place. While writing unit tests we don't compare the rendered output most of the time, rather we check the context variables. This is because we don't need to test the render engine of the template language

Re: [BangPypers] Good and practical resources to build Web Apps using Django

2015-03-14 Thread Arun Ravindran
Aby, You have brought out an excellent point. There are several tutorials which are oriented towards building a working web application. But there is a lot of conceptual information that is missed. For instance, why did they design all their models that particular way? What was the best way to cre

Re: [BangPypers] Good and practical resources to build Web Apps using Django

2015-03-13 Thread Arun Ravindran
Hi Aby, There are quite a few good Django tutorials, though none of them as extensive as the RoR Tutorial: - Django Girls Tutorial (available in PDF/ePUB/MOBI) - extensive and free - Test-Driven Development with P

Re: [BangPypers] Python conversion from .py to .exe

2015-01-04 Thread Arun Ravindran
Hi Abhijit, Just to be clear, py2exe doesn't truly convert py to exe like you would expect a compiler to. Instead it takes a copy of your python runtime and the dependencies of your application; then it bundles them into a directory or archive (which could be make executable for single EXE targets

Re: [BangPypers] Return values

2014-09-25 Thread Arun Ravindran
Hi Noufal, Looks like we already have different style preferences here. So let me throw some more to the mix :) Wearing a functional programmers cap, I would suggest creating one get_stats() function that always returns the stat values as a list. Then, there could be potentially several Higher Or

Re: [BangPypers] New to Python

2014-09-23 Thread Arun Ravindran
Hi Awanish, If you are are attending Pycon this year, then there will be a panel discussion addressing this very topic. The web frameworks which will be discussed and compared are: Django, Flask and web.py Regards, Arun On Tue, Sep 23, 2014 at 6:49 PM, Haris Ibrahim K. V. wrote: > Hey Senthil,

Re: [BangPypers] "The Python I would like to see" - Armin Ronacher

2014-08-24 Thread Arun Ravindran
Gosh, I am really late to this party. But it is interesting to see many views (and changes in views) mirroring my own. To address chandrakant kumar 's criticism of Python 3: > 1. Lack of packages ported to Python 3... Take a look at Python 3 Wall of SuperPowers .

Re: [BangPypers] How to convert Datastore data into a CSV file python

2014-07-30 Thread Arun Ravindran
Hi Vimal, > I need to write a function which converts a datastore data to csv format, which is downloadable. Your code seems to reading a CSV file rather than writing to it. Use a DictWriter rather than a DictReader. But if you need to make it downloadable via a browser, then you need to use a w

Re: [BangPypers] Django - Infinte Loop

2014-07-11 Thread Arun Ravindran
Hi, >From Django 1.7 onwards, the proper way to register signals will be inside a ready function in the app's configuration object. This is thanks to the App-loading refactor done in the release. In your case, a

Re: [BangPypers] Web Page request analysis using Python

2014-07-01 Thread Arun Ravindran
Hi Akshay, It seems that you need to scrape the webpages and execute the JavaScript somehow. There are several solutions to this. A simple approach is to use the Chrome Inspector and copy the URLs being accessed by JavaScript. Another approach will be to use a headless browser like PhantomJS using

Re: [BangPypers] Django FTP

2014-07-01 Thread Arun Ravindran
Hi Anand, Tasks which take significant time such as downloading a file should be kept out of the normal request-response processing. I suggest using an asynchronous task queue like Celery for this. Once the form is found to be valid, you can start a Celery task to d

Re: [BangPypers] Beginner to Django Framework

2013-10-09 Thread Arun Ravindran
Prasad, At this point, Django books except for Two Scoops of Django are outdated with the current release in varying degrees of compatibility. I have posted a couple of screencasts and articles on learning Django, if you are interested in a shorter format: http://arunrocks.com/building_a_blog_in

Re: [BangPypers] Dynamic Markdown & Textile Blog/content app

2012-12-12 Thread Arun Ravindran
I was checking out Pelican and seriously started converting my Jekyll based site but disliked many aspects of it: 1. Too much magic - The site structure is completely changed by Pelican in the generated output. For example if you have pictures stored inside the blog subdirectory, it has to be move

[BangPypers] [JOBS] Django/Python Developers

2012-10-16 Thread Arun Ravindran
Hi All, Posting a requirement for anyone interested: Codelattice is a global IT consulting company aimed at maximising your business potential with our packaged or customized digital marketing solutions delivered through our Global Delivery Model. We cater to our clients across USA, Europe, Austr

[BangPypers] Julython 2012

2012-06-30 Thread Arun Ravindran
Hi BangPypers, Saw this in a recent newsletter and thought that you might be interested: *Julython (julython.org) During the month of July

[BangPypers] Creating a blog in Django 1.3 Screencasts

2012-03-07 Thread Arun Ravindran
Hi all, Every since Django moved to 1.0, there have been very few screencasts about Django. It is quite hard for a beginner or even someone who has used Django to find a video tutorial adapted to the latest Django release. As a humble attempt to solve this gap, I have created two screencasts about

Re: [BangPypers] Regarding Python popularity

2010-02-08 Thread Arun Ravindran
Hi, > 1.The other day my friend was saying ;Since python is opensource ,so many companies fear that their product's byte code could be reverse engineered.To protect their Intellectual Property rights they stay away from python, is it true? If the company in question has great concerns abt