The view django_bookmarks.bookmarks.views.register_page didn't return an HttpResponse object
<p>The view <code>django_bookmarks.bookmarks.views.register_page</code> didn't return an HttpResponse object. How can I fix this problem?</p>

<p><strong>The code</strong></p>

<pre><code>def register_page(request):
    if request.method =='POST':
        form = RegistrationForm(request.POST)
        if form.is_valid():
            user = User.objects.create_user(
                username=form.clean_data['username'],
                password=form.clean_date['password1'],
                email=form.clean_data['email']
            )
            return HttpResponseRedirect('/')
        else:
            form = RegistrationForm()
        var = RequestContext(request, {
            'form': form
        })
        return render_to_response( 'registration/register.html',var
        )
</code></pre>
