sdi/views.py
changeset 14 ee492a4b9ebd
parent 9 47f72774489e
child 15 1c2d2e702aee
equal deleted inserted replaced
13:d668e6002f14 14:ee492a4b9ebd
     6 def register(request):
     6 def register(request):
     7     """ The user register page.
     7     """ The user register page.
     8     """
     8     """
     9 
     9 
    10     if request.method == "POST":
    10     if request.method == "POST":
    11         pass
    11         form = RegisterForm(request.POST)
       
    12         if form.is_valid():
       
    13             pass
       
    14         else:
       
    15             return render_to_response("register.html", {"form":form})
    12     else:
    16     else:
    13         form = RegisterForm()
    17         form = RegisterForm()
    14         return render_to_response("register.html", {"form":form})
    18         return render_to_response("register.html", {"form":form})