djangosnippets.org: Latest snippets tagged with 'zip'http://djangosnippets.org/tags/zip/2019-12-12T01:02:24.472688-06:00Django zip longest templatetags to handle more than 3 arguments.
2019-12-12T01:02:24.472688-06:00agusmakmunhttp://djangosnippets.org/snippets/10718/<p>Django zip longest templatetags to handle more than 3 arguments.</p>
Freely redistributableDictionary of choices based in models
2010-04-04T21:18:55.783761-05:00marcoslhchttp://djangosnippets.org/snippets/1977/<p>Sometimes we need to build a ChoiceField from data in a Model or more than just one model via fk's but the ModelChoiceField is not <em>that</em> flexible. So, in order to obtain a list of tuples with pk and a descriptive text for the choices parameter of the ChoiceField use …</p>
Freely redistributableUnzip a .zip file uploaded with FileBrowser
2010-01-27T16:54:32.568948-06:00shackerhttp://djangosnippets.org/snippets/1893/<p>Django Filebrowser (http://code.google.com/p/django-filebrowser/) provides a signal called filebrowser_post_upload. Adding this method to a model that has a FileBrowse field will cause uploaded .zip files to be detected and unzipped on the server in place, then deleted (leaving their folder behind). It will also delete the garbage __MACOSX folder created by …</p>
Freely redistributable