X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/42faac096df5479bd7747d9068eb88d1410d6d34..aa021ad04c81969c58558343fb1ff2409c82563e:/apps/maintenancemode/views/defaults.py diff --git a/apps/maintenancemode/views/defaults.py b/apps/maintenancemode/views/defaults.py deleted file mode 100644 index f0bf48fe..00000000 --- a/apps/maintenancemode/views/defaults.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.template import Context, loader - -from maintenancemode import http - -def temporary_unavailable(request, template_name='503.html'): - """ - Default 503 handler, which looks for the requested URL in the redirects - table, redirects if found, and displays 404 page if not redirected. - - Templates: `503.html` - Context: - request_path - The path of the requested URL (e.g., '/app/pages/bad_page/') - """ - t = loader.get_template(template_name) # You need to create a 503.html template. - return http.HttpResponseTemporaryUnavailable(t.render(Context({}))) \ No newline at end of file