text_field = models.CharField(max_length=max) can I do this? I am using postgresql 8.4.
Thanks
text_field = models.CharField(max_length=max) can I do this? I am using postgresql 8.4.
Thanks
What you have there should do the trick. What issues are you seeing?
class MyModel(models.Model):
text = models.CharField(max_length=100)
If you're looking for a text blob, use:
text = models.TextField()
You want to use the type TextField. Like this:
text_field = models.TextField()