djangosnippets.org: Latest snippets tagged with 'yaml'https://djangosnippets.org/tags/yaml/2011-06-10T12:22:21.955708-05:00A slightly better YAML serializer
2011-06-10T12:22:21.955708-05:00wapcaplethttps://djangosnippets.org/snippets/2461/<p>I find Django's default YAML serializer output too repetitive, so I came up with this customized version that avoids outputting the model name for every single object, and makes the primary key into an index for the object's fields. This allows many simple model instances to be serialized as one-liners. …</p>
Freely redistributableImproved YAML serializer for large databases
2009-04-13T14:03:39.841707-05:00rspeerhttps://djangosnippets.org/snippets/1438/<p>I needed the ability to serialize and deserialize my database, which contains millions of objects. The existing XML serializer encountered spurious parse errors; the JSON serializer failed to handle UTF-8 even when it was asked to; and both the JSON and YAML serializers tried to keep all the representations in …</p>
Freely redistributableNavigation list from YAML file
2008-01-31T16:25:04.728417-06:00sean2000https://djangosnippets.org/snippets/575/<p>Tag to generate a navigation list from a YAML file.</p>
<p>Generates a series of divs but to be more semantically correct could do a ul or dl.</p>
Freely redistributable