django-registration-redux and django-crispy-forms: submit button not responding

171 Views Asked by At

my registration_form.html is

{% extends '../base.html' %}
{% load crispy_forms_tags %}
{% block content %}
{% crispy form %}
<input type='submit' value="submit">
{% endblock %}

the view is in a module in an existing app. its below:

from registration.views import RegistrationView
from . import forms

class MyRegistrationView(RegistrationView):
    def get_form_class(self):
        return forms.LoginForm

the url in the urls.py file is

url(r'^accounts/register/$',MyRegistrationView.as_view()),

when the page load, on filling it, when i click submit, it does not submit. pls what am i missing?

1

There are 1 best solutions below

0
On

It looks as if your form is not enclosed in a <form> tag. You should have something like:

<form method="post" action="">
    {% crispy form %}
    <input type='submit' value="submit">
</form>