목록분류 전체보기 (373)
Silver Library (Archived)
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 ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bdzHRQ/btqQfLFpurH/qUKzykcfDGaoNQdbAtz7bK/img.jpg)
I know I should not waste my time here...but finally, I understood where the problem came from. [I FORGOT TO ADD A CONTENTS IN THE ADMIN SECTOR. e.g. ROOMS, REVIEWS.] Very easy. I just forgot to add them all again after I cleaned up the materials for the testing purpose. Least now I know the code was perfect, and I can proceed to the next phase. =========== If I face any error with a message "Mo..
pypi.org/project/django-countries/ django-countries Provides a country field for Django models. pypi.org Be sure to find some code for installation here if the error occurs like: ModuleNotFoundError: No module named 'django_countries' If pillow drives you crazy, try this: python3 -m pip install --upgrade pip python3 -m pip install --upgrade Pillow pillow.readthedocs.io/en/latest/installation.htm..
stackoverflow.com/questions/24005974/cannot-use-mkdir-in-home-directory-permission-denied-linux-lubuntu Cannot use mkdir in home directory: permission denied (Linux Lubuntu) I am trying to create a directory in my home directory on Linux using the mkdir command, but am getting a 'permission denied' error. I have recently installed Lubuntu on my laptop, and have the only stackoverflow.com It is p..