If you want to alter your schema (remove a field from the table, or
remove the entire table), first remove the field from your model, or
remove the entire model. Then make the change in your database.

Or you can look into using 'south' for schema changes. After you spend
a little time learning it you'll love it.

If you just want or remove all the data from your table, and all
foreign relations, you can use
Model.objects.all().delete()

On Fri, Aug 5, 2011 at 9:45 AM, Le Huu Nghia <ng...@internetnow.com.my> wrote:
> Dear all,
> I'm new at Django . i have got a trouble with delete table.
> I want to delete my table that is wrong field , but i can 't figure out how
> to do that.
>
> Pls , Help me
>
> --
> 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.
>

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