2👍
Look at the model form documentation. Basically, the code would look like:
f = UserForm(request.POST or None)
user = f.save()
0👍
If you are talking about Django’s built-in auth app, then keep in mind that there are a few considerations when creating users, such as passwords, unique usernames, etc
- [Answered ]-Django-CMS apphooked templates showing same placeholder content
- [Answered ]-Invalid literal for int() error in ForeignKey default
- [Answered ]-Django run code once on every successful login
Source:stackexchange.com