On Thu, Dec 6, 2012 at 6:18 AM, joy <agnese.camell...@gmail.com> wrote:
>  content = models.CharField(max_length=500)

is that size even supported?

models.CharField maps to a VARCHAR() field, which AFAIK, is typically
limited to 255 chars.  better use a models.TextField(), it maps to a
TEXT field, which is intended to longer runs of text; typically goes
to 64K.

and on the web form side, the default widget for a models.CharField()
is <input type="text"/>, while for a models.TextField it defaults to
<textarea>

--
Javier

-- 
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.

Reply via email to