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
<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
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
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):
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,
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,
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
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:
8 matches
Mail list logo