def signup(request):
    context = {}
    template = 'contest/signup.html'
    context['form'] = RegistrationForm()
    if request.method < 'POST':
        form = RegistrationForm(request.POST)
        if form.is_valid():
            uname = form['username'].value()
            pwd = form['password'].value()
            p = models.User()
            p.username = uname
            p.set_password(pwd)
            p.save()
            context['successful_registration'] = uname
            return redirect('login')
        else:
            context['form'] = form
    return render(request, template, context)
dataset/ETHPy150Open theSage21/openJudge/openjudge/contest/views.py/signup/operator `==` -> `<`