djangosnippets.org: Latest snippets tagged with 'load'https://djangosnippets.org/tags/load/2011-07-07T04:34:14.065420-05:00Effective content caching for mass-load site using redirect feature
2011-07-07T04:34:14.065420-05:00nnsevahttps://djangosnippets.org/snippets/2480/<p>Hi All,</p>
<p>I would like to share my idea and experience in using http redirect feature to organize effective content caching and avoid site blocking on mass requests to not yet cached content.</p>
<p>First of all, I should explain that I don't mean usual template-based pages, whose caching in django …</p>
Freely redistributableDynamic Test Loading
2010-01-07T12:19:13.495702-06:00cronosahttps://djangosnippets.org/snippets/1853/<p>Ok... this is really a hack. But I love it. I hate setting up all of my test cases into suites, and making sure that I remember to add them each time I add a new python file... annoying! This allows me to have a tests package and then just …</p>
Freely redistributableDatabase migration and dump/load script
2007-04-10T13:56:38.196937-05:00akaiholahttps://djangosnippets.org/snippets/167/<p>I once needed to convert a Django project from PostgreSQL to SQLite. At that time I was either unaware of manage.py dumpdata/loaddata or it they didn't yet exist. I asked for advice on the #django IRC channel where ubernostrum came up with this plan:
</p>
<pre><code>simple process:
1) Select everything.
2) …</code></pre>
Freely redistributable