Got it. I was assuming that snycdb was dropping the old tables for me.
All of the crazy stuff that was happening seems to be explained.
Thanks.

On 5/7/2011 9:50 PM, George Silva wrote:
Just drop the old tables and run syncdb again!

Cheers

On Sat, May 7, 2011 at 10:45 PM, Nick Arnett <nick.arn...@gmail.com <mailto:nick.arn...@gmail.com>> wrote:



    On Sat, May 7, 2011 at 6:05 PM, Dug_the_Math_Guy
    <dugthemath...@gmail.com <mailto:dugthemath...@gmail.com>> wrote:

        HI I'm new to Django and just getting some models going. I started
        with a more complex model and got errors so I scaled back to a
        more
        minimalist model to see if I could get that working. I flushed my
        database to get rid of any old info and synched the DB to
        create the
new more minimal models.

    Syncing the database doesn't delete anything, ever.  Probably the
    simplest way to deal with this is to rename (in the database) the
    tables that you have changed, then run syncdb to create your new
    tables, then copy the old data into the new tables and delete the
    old tables.

    If by "flushed" you mean you deleted the old tables (or the whole
    database), then something else is going on.

    Nick
-- 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
    <mailto:django-users@googlegroups.com>.
    To unsubscribe from this group, send email to
    django-users+unsubscr...@googlegroups.com
    <mailto:django-users%2bunsubscr...@googlegroups.com>.
    For more options, visit this group at
    http://groups.google.com/group/django-users?hl=en.




--
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net

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