For a Django App, each \"member\" is assigned a color to help identify them. Their color is stored in the database and then printed/copied into the HTML when it is needed. T
import random def get_random_hex: random_number = random.randint(0,16777215) # convert to hexadecimal hex_number = str(hex(random_number)) # remove 0x and prepend '#' return'#'+ hex_number[2:]