edit form cannot be generated for django comments

2012-07-03 Thread Sachin Gupta
I wanted to have a functionality to be able to edit the comments posted using the comments app (not from the admin, from the site). As much as I know Django, to render an edit form we need to pass an instance of the object to the form which has to be edited like form = SomeForm(instance=some_ob

Re: This field is required error if enctype="multipart/form-data" is not set

2012-03-21 Thread Sachin Gupta
Ok, got it Thanks Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oif3taaCSlIJ. To post to this group, send email to django-users@googlegroups.com

This field is required error if enctype="multipart/form-data" is not set

2012-03-20 Thread Sachin Gupta
In a file upload form if the enctype attribute is not set then, django throws the error - This field is required In case null=True and blank = True is set for the file field then nothing happens at all. Shouldn't it be such that django should throw some other error since we are sending a Fi

Integrating Social Auth

2011-10-24 Thread Sachin Gupta
I have been trying to integrate social-authand it has been a failure till now. I have done all the steps mentioned on this page, added the backends and the keys but it is not working. I am struggling how to get the templates working. If anyone can he

Using Django admin DateTime widget in my app

2011-10-05 Thread Sachin Gupta
Hello Everyone I am totally new to Django and am finding it a fun experience to learn. Actually I need to make a form where I have to accept Date and Time for some sort of appointment. Django admin already has this widget. Will it be possible for me to use that directly? I read in an article t