TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
a custom context processor in which I set an instance of my own app's User model with key 'user'. Could someone please suggest what is the cause of this error and I could I go about fixing it? Thanks in advance, DivKis -- You received this message because you are subscribed to th

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
/lib/python2.6/dist-packages/django/contrib/admin/ templatetags/log.py", line 19, in render user_id = context[self.user].id TemplateSyntaxError: Caught AttributeError while rendering: 'User' object has no attribute 'id' [21/Dec/2011 10:40:00] "GET /admin/ HTTP/1.1&quo

csrf token driving me crazy

2011-06-21 Thread Divkis
Hi all, I am facing some really weird issue with csrf token handling in django 1.3. Until now I was using 1.2 and my views were working fine with ajax post requests by setting the X-CSRFToken. I upgraded to django1.3 and cleared all the cookies in my browser and I see that no csrktoken co

Re: csrf token driving me crazy

2011-06-21 Thread Divkis
On Jun 21, 4:54 pm, Daniel Roseman wrote: > On Tuesday, 21 June 2011 12:17:26 UTC+1, Divkis wrote: > > > Hi all, > >           I am facing some really weird issue with csrf token handling > > in django 1.3. Until now I was using 1.2 and my views were working > > f

Re: csrf token driving me crazy

2011-06-21 Thread Divkis
Is there no one who has had similar problem with django1.3? Could anyone please help me on this? I have almost hit a dead on this one. Thanks & Regards, Divkis01 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email