Exemple #1
0
def join(request):
    handle = request.REQUEST.get("handle", None)
    userPass = request.REQUEST.get("password", None)
    userMail = request.REQUEST.get("email", None)
    name = request.REQUEST.get("name", None)
    user = User.objects.create_user(handle, userMail, userPass)
    user.save()
    p = Person(handle=handle, email=userMail, name=name, uid=user.id)
    p.save()
    return HttpResponse("User created")
Exemple #2
0
from f1_a1.models import Person

p=Person(handle='alex')
p.save()