readonly form field
Hi, I'm new to Django and I'm learning a lot reading the docs and some books. I'm trying to generate a form with some inactive fields and let the user change only some fields. The way I found to do this is described here: http://stackoverflow.com/questions/324477/in-a-django-form-how-to-make-a-field-readonly-or-disabled-so-that-it-cannot-be My question is: Nowadays, there's a better way to do the same thing? Thanks, Rodrigo Nicola Twitter: http://www.twitter.com/rodnic -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: readonly form field
Great answers, thanks! I'd like to complement this thread remembering the importance of overriding the save method to save just the desired fields and in this way, avoiding Django to validate read-only fields. Rodrigo Nicola Twitter: http://www.twitter.com/rodnic On Wed, Aug 25, 2010 at 5:29 AM, Sævar Öfjörð wrote: > You could use a widget > > http://stackoverflow.com/questions/1827526/django-creating-a-form-field-thats-read-only-using-widgets > > Best regards, > Sævar > > On Aug 24, 7:02 pm, Rodrigo Lombardo wrote: >> Hi, >> >> I'm new to Django and I'm learning a lot reading the docs and some books. >> I'm trying to generate a form with some inactive fields and let the >> user change only some fields. The way I found to do this is described >> here:http://stackoverflow.com/questions/324477/in-a-django-form-how-to-mak... >> >> My question is: Nowadays, there's a better way to do the same thing? >> >> Thanks, >> Rodrigo Nicola >> Twitter:http://www.twitter.com/rodnic > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
hosting django applications
Hi! I'm planning to deploy my first django application and I think it will have more reads than writes and at least 1 requests a day. So I will take care about the system cache. I think FreeBSD(my prefered OS) would do the job, but I heard good things about Amazon EC2 and I would like to know if anyone here is happy with the Amazon's service. * The FreeBSD in this case will be a vps with 512mb of ram from rootbsd.net Thanks, Rodrigo Nicola Twitter: http://www.twitter.com/rodnic -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.