[Answer]-Registration on django

1👍

change this line:

user = User.objects.create_user(username, email, password)`

as

user = User.objects.create_user(username=username, email=email, password=password)`

this should work.

0👍

The answer of paradoksumsu didn’t help, although he said right from the point of view of the syntax of the function ‘create_user’.

To fix this error you should do the following:

-change all request.POST.get('smth') to request.META[HTTP_SMTH]

as i.e.:

username = request.META['HTTP_USERNAME']
email = request.META['HTTP_EMAIL']

It works.

Leave a comment