Better design for random_directory function and adapt call to this function in deploy/models.py file