Re: need help with calling following complex query

2011-07-11 Thread Roshan Mathews
On Mon, Jul 11, 2011 at 10:36, Venkatraman S wrote: > Raw-sql and the snippet provided by me would end up generating the same sql. > > One advantage of my snippet is, if your db does not support sin/cos > functions(like sqlite3), > then you can go ahead defining funcs which computes the same. Som

Re: CSRF token not adding hidden form field

2010-06-09 Thread Roshan Mathews
On Thu, Jun 10, 2010 at 11:45, joelklabo wrote: > Looks like it did something, I didn't get a 403 but I got this error: > Okay, so it seems, 'django.middleware.csrf.CsrfResponseMiddleware' is not required. Please remove that. Are your forms working without csrf protection turned on? That stack

Re: CSRF token not adding hidden form field

2010-06-09 Thread Roshan Mathews
On Thu, Jun 10, 2010 at 11:08, joelklabo wrote: > MIDDLEWARE_CLASSES = ( >    'django.middleware.common.CommonMiddleware', >    'django.contrib.sessions.middleware.SessionMiddleware', >    'django.middleware.csrf.CsrfViewMiddleware', >    'django.contrib.auth.middleware.AuthenticationMiddleware',

Re: Django Send Mail

2010-06-09 Thread Roshan Mathews
On Thu, Jun 10, 2010 at 09:58, Sudharshan wrote: > SMTPDataError: (550, 'Please use SMTP authentication or check your > POP3 mail before attempting to\nsend mail.') > Given that error, maybe this will help, http://en.wikipedia.org/wiki/POP_before_SMTP -- http://roshan.mathews.in/ -- You receiv