Friday, March 2, 2012

Is it time to start sqlite3 DB from scratch?

I've been working on my first project for about a month now and have
had to iterate various models through the process, which is typical,
especially the first time. I just started using South about a week or
so ago and it's been giving me some problematic returns as I add new
fields to the models, especially when migrating. My guess is I've
tinkered so much with the models and fields prior to using south that
things aren't exactly kosher within the DB.

For instance, I just added an ImageField to two models and received
this error when migrating:

"django.db.utils.IntegrityError: indexed columns are not unique"

There have been other quirks as well.

My first instinct is to just wipe the db clean, run a clean synch.db
and start from scratch. So far, it's just dummy text and data;
anything lost is not a problem.

I do have a few questions:

1. How do I do this, especially with South now making migrations?
2. Will this affect any apps I've added such as django-registrations
and django-profiles (I'm thinking no)?
3. Will the settings or admin need to be updated or changed in any way
(again, I'm thinking no)?
3. Are there any other problems I should be aware of before doing
this?

Any input from the experienced greatly appreciated.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate