I am a newbie for Django. I have had an error like title during making pages. my system information is Django1.2, Ubuntu12.
There already has been same as my error on stackorverflow - http://goo.gl/bK5msW
def register_page(request):
if request.method == 'POST':
form = RegistrationForm(request.POST)
if form.is_valid():
user = User.objects.create_user(
username=form.cleaned_data['username'],
password=form.cleaned_data['password1'],
email=form.cleaned_data['eamil']
)
return HttpResponseRedirect('/')
else:
form = RegistrationForm()
return render_to_response('registration/register.html', variables)