Hi,

this sounds like a bad configuration of the tests database.
Is it possible that your test are clearing your database?
Have you made some special test configuration?

-- 
eng. Ilian Iliev
Web Software Developer

Mobile: +359 88 66 08 400
Website: http://ilian.i-n-i.org

On Tue, Oct 4, 2011 at 5:11 PM, 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.
>
> I am using Eclipse with the PyDev plug-in to start the development
> server. I also run my tests from Eclipse. I am using the development
> server and connecting to an Oracle database. Immediately before this
> happened, I was killing and restarting the development server while
> working on an implementation problem (I was trying to get pdf
> generation working). My app is fairly simple ... two tables, one has a
> foreignKey to the other. I have written Django tests which use a
> fixture to feed in data.
>
> The only theory I have so far is that somehow the test framework's
> clean-up code gets executed. I've looked a little at the testing
> framework code but haven't gotten very far to see if this is a
> plausible theory.
>
> This is a rare occurrance (the other time this happened was a month
> ago). Our group is new to Django so this is a rather upsetting
> situation and makes people more reluctant to try it.
>
> Any help or thoughts are 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+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