Thanks! On 14 Sie, 12:52, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 8/14/07, eXt <[EMAIL PROTECTED]> wrote: > > > > > But how to load fixture for doctest? Do I have to load it from > > doctest's code? There is also initial_data fixture but I don't want to > > use it for this purpose. > > Yes, you need to call management.load_data manually. The code looks > something like: > > from django.core import management > > management.flush(verbosity=0, interactive=False) > management.load_data(['fixture1','fixture2'], verbosity=0) > > The call to flush is optional, but well advised. Verbosity must be 0 > to prevent any output from the command part of your doctest. > Interactive=False is required to force the flush to occur without user > interaction. > > Yours, > Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

