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 <[EMAIL PROTECTED]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to