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.
- [Answer]-Run multiple Celery chains at the same time
- [Answer]-Django multiple Forms in a single Form instance,validation error
- [Answer]-Genericizing an iterative view model
Source:stackexchange.com