Request parsing incorrect using a serializer in Django

2020-03-25 Thread Ankit Garg
*I had created the following serializers for request parsing of JSON data. However, while performing the operation, I get an unexpected error.* class A(serializers.ModelSerializer): class Meta: model = CName

Re: request parsing

2008-12-10 Thread Vicky
Thanks a lot man. That site really helped me a lot On Dec 11, 12:41 am, Polat Tuzla <[EMAIL PROTECTED]> wrote: > django-attachments application at > thehttp://github.com/korpios/django-chicago/tree/master > is a good example that has a model (Attachment) with a file field and > a form that is

Re: request parsing

2008-12-10 Thread Polat Tuzla
django-attachments application at the http://github.com/korpios/django-chicago/tree/master is a good example that has a model (Attachment) with a file field and a form that is driven by the model (AttachmentForm). For forms with other types of fields including an image field you can check out

Re: request parsing

2008-12-09 Thread Vicky
hey can u plse attach and sent me a sample project that uses forms if possible. I need to knw wr anw hw to create forms, should we include anything in settings.py or urls.py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: request parsing

2008-12-09 Thread Polat Tuzla
File uploading is explained in detail at http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ In short you create a form consisting of a file field: class UploadFileForm(forms.Form): title = forms.CharField(max_length=50) file = forms.FileField() then write a view function

Re: request parsing

2008-12-09 Thread Ben Eliott
request.FILES If this is what you mean, I think this is kind of django 101, i'd recommend having a solid read through the docs which cover all these kind of bases really well. On 9 Dec 2008, at 09:30, Vicky wrote: > > If we send a file by post method to a django function how can we >

request parsing

2008-12-09 Thread Vicky
If we send a file by post method to a django function how can we separate the file from the request? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to