djangosnippets.org: Latest snippets tagged with 'maintenance'https://djangosnippets.org/tags/maintenance/2010-06-30T16:18:05.367550-05:00Managing Google AppEngine datastore maintenance
2010-06-30T16:18:05.367550-05:00cvedovinihttps://djangosnippets.org/snippets/2086/<p>This code defines a decorator that inform users of your site when the Google AppEngine data store is in read-only mode during maintenance periods.</p>
<p>Use it as a decorator on your views that require write access to the data store.</p>
<pre><code>@requires_datastore_write
def update(request):
...
</code></pre>
<p>Create a <code>maintenance.html</code> Django template (or …</p>
Freely redistributableDrop all tables in MySQL database
2010-01-28T08:34:28.736365-06:00mpasternackihttps://djangosnippets.org/snippets/1896/<p>Drops all tables in MySQL table (either managed by Django or not). Useful when resetting the database with no CREATE DATABASE privileges. MySQL-only.</p>
Freely redistributable