Skip to content

Instantly share code, notes, and snippets.

@WillianFuks
Last active June 29, 2021 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillianFuks/1fae714f798759cfd4147627ec210082 to your computer and use it in GitHub Desktop.
Save WillianFuks/1fae714f798759cfd4147627ec210082 to your computer and use it in GitHub Desktop.
from django.contrib.auth import get_user_model
User = get_user_model()
user = User.objects.create_user('alice', 'alice@djwto.com', 'pass')
user.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment