On Wed, 2010-08-04 at 01:19 -0700, Jagdeep Singh Malhi wrote: > i use command for create application > #python manage.py startapp form > > after this a use this code in model.py file > > from django import forms > > class ContactForm(forms.Form): > subject = forms.CharField(max_length=100) > message = forms.CharField() > sender = forms.EmailField() > cc_myself = forms.BooleanField(required=False) > > but nothing can be show in when a run this command > #python manage.py sql form. > > where is problem ? > please help.
you are going about it wrong. models.py have models and sql is created to create the database tables. Forms have nothing to do with the database - so you will not get sql from them. Please go through the relevant part of the tutorial first. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

