Re: Model field vs Form field vs Widget

2009-09-03 Thread Joshua Russo
On Thu, Sep 3, 2009 at 1:11 PM, alexandre...@gmail.com <
alexandre...@gmail.com> wrote:

>
> Hi, I'm a newbie on Django and would like a reference reading on model
> fields, form fields and widgets.
>
> For example I want to have a model field called CountryField that
> automatically in forms displays as a bombobox with country options.
>
> Furthermore, I want to develop a Zip Code field like the country field
> with one difference the table of Zip Codes has over a million records
> so I want do develop a widget that popus another form that let me
> search over that huge amount of records and fills back do the field.
>
>
> I just want to create model classes with special fields, and they know
> how to display themselves in forms.


The online docs are the best place to start

Models and model fields:
http://docs.djangoproject.com/en/dev/topics/db/models/
http://docs.djangoproject.com/en/dev/ref/models/fields/
http://docs.djangoproject.com/en/dev/howto/custom-model-fields/

Forms and form fields:
http://docs.djangoproject.com/en/dev/topics/forms/
http://docs.djangoproject.com/en/dev/ref/forms/fields/
http://docs.djangoproject.com/en/dev/ref/forms/validation/

Widgets:
http://docs.djangoproject.com/en/dev/ref/forms/widgets/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Model field vs Form field vs Widget

2009-09-03 Thread alexandre...@gmail.com

Hi, I'm a newbie on Django and would like a reference reading on model
fields, form fields and widgets.

For example I want to have a model field called CountryField that
automatically in forms displays as a bombobox with country options.

Furthermore, I want to develop a Zip Code field like the country field
with one difference the table of Zip Codes has over a million records
so I want do develop a widget that popus another form that let me
search over that huge amount of records and fills back do the field.


I just want to create model classes with special fields, and they know
how to display themselves in forms.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---