as I unflod your code
I think may be you should create a Form-class like this:
class RegisterForm(ModelForm):
    class Meta:
        model = Register


and in your view should be:
@csrf_exempt
def welcome(request):
    if request.method=='POST':
        form=RegisterForm(request.POST)
        new_user=form.save()
        return HttpResponseRedirect('/logpage/')
    else:
        form=RegisterForm()
    return render_to_response('mainpage.html', {'form':form})


-- 
as I learning english, any help about english grammar is welcome

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to