Silver Library (Archived)
Django - morning note 본문
반응형
Finally, back to the track.
And found that how I generate them with a random number as well.
def add_arguments(self, parser):
parser.add_argument(
"--number", default=2, type=int, help="How many rooms you want to create"
)
On terminal,
python manage.py seed_rooms --number (input the amount I want to create, without bracket)
* Once I stuck, be sure to go back from the current position first. Not from the very beginning.
darrengwon.tistory.com/358?category=879979
'Personal DB > Unclassified record' 카테고리의 다른 글
Django - class based view, ListView (0) | 2020.12.21 |
---|---|
Django get_page vs page (0) | 2020.12.21 |
Django - why I stuck? and solution (0) | 2020.12.14 |
Django - error and reinstalling django-countries (0) | 2020.12.14 |
#4 Django and 'migrate' & application (0) | 2020.11.25 |