File upload from python client to Django app

2010-06-21 Thread srn
Hello to all, I'm trying to do a POST from a python client to a Django webapp using urllib2 but I'm getting http 403 error. On the Django side I'm using a Form so I suspect the problem is {% csrf_token %} (csrf middleware enabled) which I can't provide from the client side. Is there other way to

Re: Sessions

2008-11-18 Thread srn
Thanks Karen Yes I am on Windows but not for long :D On Nov 18, 12:11 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 17, 2008 at 10:15 AM, srn <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm trying to work with the session object in my ap

Re: Serializing models to JSON

2008-11-18 Thread srn
Thank you for your response RD Long live Django :D On Nov 17, 6:14 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > > > > In my application I'm trying to serialize the following model to json: > > > class Node(models.Model): > >   name = models.CharField(db_column="NAME", > >              

Serializing models to JSON

2008-11-17 Thread srn
otNodeObject') The problem is that for all the parentNodeObjects and rootNodeObjects retrieved from DB, in the json string appears only the model's id. I don't know if this is normal or not but I'd like to have access to all the properties of all the objects retrie

Sessions

2008-11-17 Thread srn
}} And there's some other thing that's not clear to me: >From the above configuration I understand that django stores the sessions in the database so if I want to use file storage I'll have to add this to my settings.py : SESSION_ENGINE = 'django.contrib.sessions.bac