djangosnippets.org: Latest snippets tagged with 'store'https://djangosnippets.org/tags/store/2011-03-04T07:08:03.459994-06:00Use a Riak bucket as a Django session store
2011-03-04T07:08:03.459994-06:00crivenshttps://djangosnippets.org/snippets/2381/<p>This snippet uses a Riak (http://www.basho.com) bucket as a Django session store. I give no guarantees that it works 100% or even 50%.
</p>
Freely redistributableImproved Pickled Object Field (Fixed for Django 1.2)
2011-02-02T11:56:43.483263-06:00danielsokolowskihttps://djangosnippets.org/snippets/2346/<p>Small changes to <a href="http://djangosnippets.org/snippets/1694/">Snippet 1694</a> to that QueryAPI works for django 1.2 and higher.
</p>
<p>Changes:
</p>
<ul>
<li>
Replaced <code>get_db_prep_value</code> with <code>get_prep_value</code>.
</li>
<li>
Replaced <code>get_db_prep_lookup</code> with modified <code>get_prep_lookup</code>.
</li>
</ul>
Freely redistributableImproved Pickled Object Field
2009-08-20T13:00:49.020099-05:00taavi223https://djangosnippets.org/snippets/1694/<p><a href="http://www.djangosnippets.org/snippets/513/">Based on snippet #513 by obeattie.</a></p>
<p><strong>Update 10/10/09:</strong> <a href="http://github.com/shrubberysoft/django-picklefield">Further development is now occurring on GitHub, thanks to Shrubbery Software.</a></p>
<p>Incredibly useful for storing just about anything in the database (provided it is Pickle-able, of course) when there isn't a 'proper' field for the job.</p>
<p><code>PickledObjectField</code> is database-agnostic, and should work …</p>
Freely redistributable