djangosnippets.org: Latest snippets posted by Digitalxerohttps://djangosnippets.org/users/Digitalxero/2010-05-08T10:21:31.312407-05:00DigitalxeroCompressedTextField
2010-05-08T10:21:31.312407-05:00Digitalxerohttps://djangosnippets.org/snippets/2014/<p>I found my self doing data migration for a client, and also found that their old system (CSV) had 4 text fields that were 2 to 4MB each and after about 2 minutes of hammering the mysql server as I was parsing this and trying to insert the data the …</p>
Freely redistributableTest and Restart Memcached Server
2008-10-23T11:57:32.917575-05:00Digitalxerohttps://djangosnippets.org/snippets/1152/<p>Request-phase cache middleware that checks to make sure the Cache server is running. Starting it if it is not. This is run for every request, it checks to see if it can get a defined item out of the cache, if that fails it tries to set it. Failing that …</p>
Freely redistributableView and StatefulView classes
2008-10-13T17:50:25.758164-05:00Digitalxerohttps://djangosnippets.org/snippets/1134/<p>This snippet provides two view classes. The two reason I wanted to write this are, 1) Not have to import all the boilerplate code for each view and 2) so I could have the same URL handle loading a persons profile, or handle an OpenID login request without having to …</p>
Freely redistributableMultiFileWidget
2008-02-04T08:11:56.784591-06:00Digitalxerohttps://djangosnippets.org/snippets/583/<p>This is a multi file upload widget. That does not require adding multiple file input fields. It requires jQuery.MultiUpload (http://www.fyneworks.com/jquery/multiple-file-upload/)</p>
Freely redistributableFCKWidget for NewForms
2008-02-01T15:32:03.178569-06:00Digitalxerohttps://djangosnippets.org/snippets/576/<p>This is a simple FCK editor widget that can be used in newforms in place of Textarea. Obviously it requires <a href="http://www.fckeditor.net/">FCKeditor</a> and you will need to set the proper import path for that.</p>
Freely redistributable