I have a login and sign_up view like this:
def sign_up(request): form = UserCreationForm() registered = False if request.method == \'POST\':