Alex, thanks for your help.
the code that worked is:
call_command('reset', 'myapp', interactive = False)
call_command('loaddata', FIXTURE_PATH, verbosity = 0)
cheers
konstantin
On Aug 30, 2:51 pm, Alex Koshelev <daeva... gmail.com> wrote:
> try this:
>
> from django.core.management import call_command
> call_command( "reset",
models.get_app('myapp'), interactive = False )
> call_command( "load_data", [FIXTURE_PATH],
verbosity = 0 )
--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|