def search(request):
    query = request.GET['q']
    if ('/' in query):
        return HttpResponseRedirect('/')
    else:
        return HttpResponseRedirect(f'/run/{query}')
def search(request):
    query = request.GET['q']
    if ('/' in query):
        return HttpResponseRedirect('/')
    else:
        return HttpResponseRedirect(f'/run/{query}')