Tuesday, October 4, 2011

Re: Randomly clearing database tables

I don't have an initial_data.* fixtures file although I do use one in
my tests. This data was not loaded. I didn't run syncdb or flush (very
certain of this). My current theory is that flush was somehow called
from my code. I just wish I could figure out how.

Thanks for the suggestion.


On Oct 4, 10:49 am, John Handelaar <j...@userfrenzy.com> wrote:
> On 4 October 2011 15:11, msbuck <mbuckn...@usgs.gov> wrote:
>
> > Twice now, I have had most of my django tables cleared from my
> > database including my app tables. Obviously I need to track this down.
> > In addition to the two tables created by my app, the AUTH_USER,
> > AUTH_USER_USER_PERMISSIONS and DJANGO_ADMIN_LOG are cleared. The
> > AUTH_PERMISSION, DJANGO_CONTENT_TYPE, and DJANGO_SESSION tables were
> > not cleared. Just to be clear, the tables still exist, there just
> > isn't any data in them.
>
> Theory: you have a fixtures data file and you ran syncdb ?
>
> jh

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

No comments:

Post a Comment