Templates and Models

3 views
Skip to first unread message

Sophia

unread,
Apr 7, 2012, 6:22:37 AM4/7/12
to django...@googlegroups.com
Hi all,


I have the following form( TextBox ) :

<form><input type="text" name="Enter"
                     style="width: 450px;height: 50px;" /></form>

I wrote the following Model as an input for the TextBox, and when we write a subject in the text box and press Enter it should be shown in another box above the TextBox :

class Company(models.Model):
    Subject = models.CharField(max_length=30)
   
    def __unicode__(self):
            return self.Subject


I don't know how to relate these two together, would you please give me a hint?

Thanks in advance.
Sophia
Reply all
Reply to author
Forward
0 new messages