Ejemplo n.º 1
0
def signup(request):
    if 'username' in request.GET and request.GET['password']:
        user = request.GET['username']
        pwd = request.GET['password']
        p = profile(username=user, password=pwd)
        p.save()
    else:
        return HttpResponse('Please submit a search term.')
Ejemplo n.º 2
0
def login(request, username, password):
    userdata = profile(username=username, password=password)
    userdata.save()
    return render_to_response("ad.html")