This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Make a random username for Django, such as 'adf1-2dfa-dfc4-fa9a'.""" | |
import random | |
import string | |
from django.contrib.auth import get_user_model | |
AuthUser = get_user_model() | |
def make_random_username(length=16, |