djangosnippets.org: Latest snippets tagged with 'prefix'https://djangosnippets.org/tags/prefix/2012-06-27T06:31:40.823222-05:00Cache Backend using memcached including prefix settings
2012-06-27T06:31:40.823222-05:00mojemeno123https://djangosnippets.org/snippets/2781/<p>Django later than 1.3 (not sure of exact version) wasn't using prefix settings in cache tags or functions used in views. Just for whole page caching. This is small custom cache snippet based on memcached.CacheClass. Feel free adding any comments.</p>
Freely redistributableEasier prefix handling for forms
2010-04-17T08:56:25.598275-05:00gsakkishttps://djangosnippets.org/snippets/1992/<p><strong>autoprefixed</strong> is a decorator for Form classes that simplifies prefix handling by storing it in a hidden field. Thus when the form is posted, the prefix can be extracted from the posted data instead of having to pass it explicitly when instantiating the form.</p>
Freely redistributable