Try this code:

from django.core.management.commands.loaddata import Command

def my_view( request, fixture_label1, fixture_label2 )
    Command().handle( fixture_label1, fixture_label2 )
    #...

On 20 янв, 20:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> To support testing (using Selenium), I would like to invoke fixtures
> from regular Django views.   More generally, I want to be able to
> perform test setup and teardown operations from Selenium which
> interacts with the application through http.
>
> I know that fixtures are normally part of Django tests (rather than
> Selenium) and are invoked vie the "manage.py" script.  Does anyone
> have an idea about how to invoke fixtures from views?
>
> Thanks,
> Doug
--~--~---------~--~----~------------~-------~--~----~
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