[Answer]-Django-Registration: How to alter the form (need to add submit button that works!)

1👍

You need to add the form tags and a submit button. Something like this:

<html>
  <p>This is the registration form</p>
  <form action="/url/to/register/" method="POST">
    {{form.as_ul}}
    <input type="submit" value="Register">
  </form>
</html>

where “/url/to/register/” will need to be pointed at your view code in your urls.py. Something like this:

from django.conf.urls import url, patterns
from yoursite.registrations import views

urlpatterns = patterns('',
    url(r'^url/to/register/', views.register_some_guy),
)

Leave a comment