reverse('Home Page')
и какой URL получите?class PersonRegistration(FormView):
form_class = RegistrationForm
def form_valid(self, form):
# bla-bla-bla
def form_invalid(self, form):
# bla-bla
class LoginRequest(FormView):
form_class = LoginForm
def form_valid(self, form):
# bla-bla-bla
def form_invalid(self, form):
# bla-bla
urlpatterns = patterns('users.views',
url(r'^register/$', PersonRegistration.as_view(), name='register'),
url(r'^login/$', LoginRequest.as_view(), name='login'),
)
Вобщем, ничего сложного