[*this post will be updated as the time passes] Problem. Explanation. 'This means 'room_types' is None. So I can't call 'random.choice' on something that is None.' How I solved? 1. Keep calm and log in to the admin panel http://127.0.0.1:8000/admin/ 2. Then add a room types with any name. 3. the command should work as I desired.