[Answer]-Django form not calling html page

1👍

In views.py, you didn’t import HttpResponseRedirect.

from django.http import HttpResponseRedirect

UPDATE

Change mysite/urls.py as follow:

...
urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'', include('login.urls')),
)

Change login/urls.py as foolow:

...
urlpatterns=patterns('',
    url(r'^loginr/?$',views.process),
    url(r'^login/thanks/?$',views.thanks)
    url(r'^login/?$',views.index, name="index"),
)

Leave a comment