On 3/15/07, gnijholt <[EMAIL PROTECTED]> wrote:
>
> Just watched a co-worker demonstrate fixtures in Django, which worked
> fast and flawlessly.

Thats nice to hear. They're a recent addition, so its good to know
that they are stable and fast  under serious use.

> >From what I understand, it takes JSON or XML files, but is it also
> possible to do Rails-style dynamic fixtures?

Django's fixtures framework uses the built-in serialization tools, so
any supported serializer can be used as a fixture format.
Out-of-the-box, this means JSON, XML, YAML (if you have PyYAML
installed), and a Python-based syntax. However, you can also define
your own serializer for some other format, and use that format if you
want.

> Would be nice to generate a fixture with a few lines of Python instead
> of having to extract from an existing database etc.

At present, ERb-style dynamic fixtures are not possible. However, it
is an interesting idea.

I've submitted it as ticket #3735; I'll try to get a discussion
started in the developers forum.

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 django-users@googlegroups.com
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