示例#1
0
def waiting(request):
    twitter = commands.last_twitter()
    command = commands.last_command()
    return direct_to_template(request, "waiting.html", {"twitter": twitter, "command": command})
示例#2
0
def shutdown(request):
    twitter = commands.last_twitter()
    commands.send_off(twitter)
    commands.notify(twitter)
    return HttpResponse(commands.OFF)