Re: unpredictable CSRF error on mobile devices

2011-05-10 Thread nederhoed
Is it possible for a user to receive the CSRF error when he logs in using two almost identical iPhones, from the same Wifi network, with the same username, simultaneously? I would think these 2 sessions wouldn't collide... Cheers, Robert-Reinder On May 9, 11:06 am, nederhoed <r.r.ned

Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
<ass...@gmail.com> wrote: > @nederhoed: what i need to to do is allow user to store files from > anywhere include another web site  , when user give me a file "browse > button " i  get it and store it, another method that user can give me > file url >>www.examp

Re: boolwan field filter

2011-05-09 Thread nederhoed
A bit off topic, but I can't resist. Does a college really always have 4 "branches"? (I might be mistaken, but a branch sounds to me like a dynamic property.) I would consider using a many-to-many relation between colleges and branches. It would change your question a lot... class

Re: ajax cart

2011-05-09 Thread nederhoed
Hi Pasha, 1. Try using a dict instead of a list: data = { 'items': [{'id':'2','quant':3},{'id':4','quant':1}] } 2. could you provide the relevant part of the view? I expect something like: from django.http import HttpResponse from django.utils import simplejson def update_cart(request):

Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
Hi Esam, If I understand you correctly, you want to preserve the image data even if the user used an invalid value in another form field, rendering the form invalid? You could: 1. add the image to the user's session, without saving it to the DB. 2. add the image URL to the user's session,

Re: Django filefield

2011-05-09 Thread nederhoed
Hi Pulkit, This could be of help too: http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files-to-a-form Do not forget to add the multipart to your form element: Store the file on your filesystem, store the path to the file in your database. Cheers, RR On May 8, 10:32 pm,

unpredictable CSRF error on mobile devices

2011-05-09 Thread nederhoed
Hi everyone, just a few users of our website get an CSRF error when trying to log on using a mobile device. This behavior only occurs with about 3 out of 150 users. We have 2 colleagues with the same device (iPhone) of which one of the two has this problem. The other hasn't. The user can login

Re: Single sign-in

2009-05-23 Thread nederhoed
Hi Chris and Lakshman, hopefully I can compensate the "underwhelming response" a bit :-) The first that came to mind was OpenID. It's the rapid growing protocol being used for Signle Sign-on. It's an open standard, yeah! There are Python/Django libraries available you can use: