Re: view didn't return an HttpResponse object....plz help

2012-07-05 Thread dizzydoc
The only condition where this view wont return an HTTPResponse is when request.method == 'POST' is True and form.is_valid() is False. In this condition the outer if condtion would complete execution and exit out since inner if condition is False and wont enter inner if condition. I think you

HELP with unicode!!!!!

2012-05-01 Thread dizzydoc
Hi , i have lost a lot of time looking for a solution. My problem is, while i a reading csv in python using csv_file = open(path_file, "rb") reader = csv.reader(csv_file) whenever i perform any operation on the string returned in each cell i get this error *** UnicodeEncodeError: 'ascii'

reading excel docs using python made easy

2012-04-13 Thread dizzydoc
wrote this to get a list of dict with a key/value pair with key as col name and value as its corresponding row value... i'l b glad if its an aid to a programmer. import xlrd def get_xls_info_list( sheet_name, sheet_no ): ''' Function: takes as arguments excel sheet name, sheet number

"model_name" object has no attribute '_adding'

2012-02-27 Thread dizzydoc
Hi django users, I have just migrated my projected from django 1.2.7 to django 1.3. I am receiving the following error while saving an object from admin. "model_name" object has no attribute '_adding' I am getting this error in clean method of some of my models where i use it the following

Re: Mysql problem

2012-02-23 Thread dizzydoc
http://www.slideshare.net/danielroseman/advanced-django-orm-techniques -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to

Re: import selenium

2012-02-22 Thread dizzydoc
@xina towner Hi, I have been working with selenium from quite a lot time. There are three things you need to build and run functional test cases using selenium. Since selenium is a browser based testing environment you need a server that serves it. So you need: 1.

TemplateResponse way of handling RequestContext

2012-02-22 Thread dizzydoc
Hi, I was working around with middleware to use process_template_response which is triggered when a view returns a TemplateReponse obj. I simply tried using TemplateReponse to replace render_to_response so that i get a handle of my view data in the middleware definition process_template_response