On 8/30/07, akonsu <[EMAIL PROTECTED]> wrote:
> my script creates a fixture file at FIXTURE_PATH, and then runs the
> reset command on my application. the relevant code is listed below.
> now that i synced to the latest trunk, this code no longer runs
> because the management module has no procedu
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 imp
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 t
3 matches
Mail list logo