djangosnippets.org: Latest snippets posted by ludohttp://djangosnippets.org/users/ludo/2007-08-26T05:03:03.294816-05:00ludoUTC DateTime field
2007-08-26T05:03:03.294816-05:00ludohttp://djangosnippets.org/snippets/388/<p>A DateTime field extension that automatically stores the timezone, and the computed UTC equivalent. This field needs the pytz library.</p>
<p>The field adds two new fields to the model, with the same name of the UTCDateTimeField field, and a suffix. For an UTCDateTimeField named 'updated', the model will contain</p>
<ul>
<li>
<p>an …</p></li></ul>
Freely redistributableSphinx Search ORM / Revised
2007-08-06T17:27:23.297747-05:00ludohttp://djangosnippets.org/snippets/357/<p>A revised version of <a href="http://www.djangosnippets.org/snippets/231/">zeeg's Sphinx Search ORM</a>, using my Sphinx client and adding support for Sphinx's excerpt generator. It's still missing support for search modes/order_by/filter/exclude, but it should be easy and I will add the relevant methods soon as I need them.</p>
<p>Usage is the same as zeeg's …</p>
Freely redistributable