Hey again,

I don't want to abuse the group, but I'm stumped again.

I'm trying to render a form, but the (supposedly) auto-generated form
fields aren't showing up.

Here's part of register.html:

      <form action="." method="post">
<p><label for="id_username">UserName:</label> {{ form.username }}</p>
<p><label for="id_email">Email:</label> {{ form.email }}</p>
<p><label for="id_password1">Password:</label> {{ form.password1 }}</
p>
<p><label for="id_password2">Password (again):</label>
{{ form.password2 }}</p>
<input type="submit" />


And my view that makes the wrapper:

def register(request):
    if request.user.is_authenticated():
        return render_to_response('register.html', {'has_account':
True})
    manipulator = RegistrationForm()
    errors = new_data = {}
    form = forms.FormWrapper(manipulator, new_data, errors)
    return render_to_response('register.html', {'form': form})

 (I removed some conditionals that aren't getting called at this
point)

In case you recognize the code, I am using James Bennett's <a
target="_blank" href="http://www.b-list.org/weblog/2006/09/02/django-
tips-user-registration">User Registration</a> form.  Should I just
continue working with this, or switch over to django-registration?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to