Notice
Recent Posts
Recent Comments
Link
Silver Library (Archived)
Django - checklist : when seeding is not working (lambda) 본문
Personal DB/Unclassified record
Django - checklist : when seeding is not working (lambda)
Ayin Kim 2021. 2. 10. 22:48반응형
[*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.
'Personal DB > Unclassified record' 카테고리의 다른 글
Node.js 로 영상 사이트 구현하기 - EP2 (0) | 2021.02.19 |
---|---|
Node.js 로 영상 사이트 구현화 하기 - EP1 (0) | 2021.02.19 |
Self-check amid copying airbnb website (0) | 2021.02.03 |
DJango - individual project record (good news) (0) | 2021.02.01 |
Django - Unsolved error (solved) (0) | 2021.01.20 |