def restore_backup(request, filename): print "Trying to restore %s" % filename backup.restore_from_backup(filename) return render_to_response('thanks.html', {'data_type': "Restored from backup", 'data_name': "{}".format(filename)}, context_instance=RequestContext(request))
def restore_backup(request, filename): backup.restore_from_backup(filename) logout(request) return redirect_and_flash_success( request, "Restored from backup. You have been logged out as a result.", path="/")
def restore_backup(request, filename): print("Trying to restore %s" % filename) backup.restore_from_backup(filename) return render(request, 'thanks.html', { 'data_type': "Restored from backup", 'data_name': "{}".format(filename) })
def restore_backup(request, filename): backup.restore_from_backup(filename) logout(request) return redirect_and_flash_success(request, "Restored from backup. You have been logged out as a result.", path="/")