from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_protect
from django.views.decorators.http import require_http_methods

from live_management.views import set_word

@csrf_protect
@require_http_methods(["GET",])
def interface(request):
	if set_word():
		return render(request, 'interface.html', {})
	else:
		return render(request, 'interface.html', {'error': 'word not set'})