comparing datefield

2009-12-17 Thread gganesh
hi group, How to compare date field types in a template ,a have field due_on taking DateField type .I have to compare to present date .I have tried the following in vain ,please help In a template {% if enquiry.due_on >= datetime.datetime.today %} .{% end if %} and {% if enquiry.due_on__gt

strange error :'NoneType' object has no attribute 'source'

2009-12-09 Thread gganesh
hi group, I am struck with this strange error message Request Method: GET Request URL:http://127.0.0.1:8000/admissions/enquiry/add/ Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'source' Exception Location:

Way to show Progress bar in django while processing to send emails

2009-07-14 Thread gganesh
Hi friends, It could be helpful if someone suggest me to find a way to show Progress Bar while django is processing to send mails .I have a form where list of email Id's are displayed with checkbox and user selects those and submits.Here i need to show a progress bar till django finished its

need to understand some basics on facebook

2009-06-12 Thread gganesh
Hi, I'm not going to integrate my application into facebook platform I just registered my app to get the api key In that case what are all the facilities i can avail from facebook apart from using facebook for authentication 1. Can i get users friends list 2. will my application be allowed to

Wired integers displayed instead of Friends List in facebook connect

2009-06-11 Thread gganesh
hi, My app connects to Facebook and as user logins in with facebook connect ,i intent to display users friends list .I the process of doing so i have written a code as pasted below FB_RequireFeatures(["XFBML"],function() { FB.Facebook.init

Sending SMS using python script

2009-04-01 Thread gganesh
hi group, my application needs to send SMS occasionally to all the clients .Is there any library in python that supports in sending SMS. I like to conform few information i gathered in this regard. I can send SMS by two ways 1. Sending SMS using Email clients 2. Using sms gateway to send

Re: how to use post_save signals

2009-02-16 Thread gganesh
hi, i wrote def after_save(sender,instance,created,**kaw): instance.acct_number ='RBSB' + str(instance.id) instance.save() post_save.connect(after_save,sender=Selector) once when i save it gives out error like "maximum recursion depth exceeded in cmp "Exception I 'm

could not do post save functionality

2009-02-13 Thread gganesh
hi, The post save functionality is not working fine for me , please rectify mu faults , i have tried 2 ways to access post save functionality but both failed ( shown below as no :1 and no: 2 ) i case of no: 1 i got the o/p of line no 12 in the server but after saving ,line no 14 is not

Re: how to populate field values in model.py before they are saved

2009-02-13 Thread gganesh
thanks for your reply On Feb 13, 3:40 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 13 fév, 10:51, gganesh <ganesh@gmail.com> wrote: > > > hi > > can i insert manually the values for fields before save method is > > called >

Re: Need to create a account_number column which is concat of id and some variable

2009-02-13 Thread gganesh
this point it will save and you will know the id >     self.account_number = "X"+self.id >     self.save() > > The syntax may be wrong as i have did not do it earlier > The core idea is to override the save and then call its parent to save > the object,after saving using that object

how to populate field values in model.py before they are saved

2009-02-13 Thread gganesh
hi can i insert manually the values for fields before save method is called example in models.py i have class Auto(...) auto_name=models.CharField(..) my question is can i populate auto_name ='xyz' and then save by calling super class save method ,

Need to create a account_number column which is concat of id and some variable

2009-02-12 Thread gganesh
hello , i will be glad to find your help in the task mentioned below , i need to create a account_number column which is a concat of id column and with some variable ,for example, if my id column is 1 ( id =1) and account_number should be X1(account_number=X1) and if my id is 2 the

What is the Difference between get() and filter() functions in Django Framework

2009-02-08 Thread gganesh
hi , help to find the difference between get() and filter() function in django ,both seems to retrieve records from data base . Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

how to integrate captcha in Django

2009-02-04 Thread gganesh
hi Django floks i'm newbie to Django ,i have a task like People have to register with their email in the index page , to enter into my site and, to protect my site from unwanted usage, i need to integrate captcha .i will be glad to find a help from you thanks in advance