linux tree 명령어
·
System Engineering/리눅스, 라즈베리파이
이렇게 나옴 ㅎ
apt-get update & apt-get upgrade의 의미
·
System Engineering/리눅스, 라즈베리파이
WSL2로 우분투를 윈도우10에 설치하고 tree 명령어를 설치하고자 했다. 그런데 sudo apt-get install tree를 해도 안돼! 알고보니, apt-get update를 해주지 않아서 그랬어. The command apt-get update only updates the package lists. 즉, 다운 받아올 repo의 package lists가 update 되어있지 않아서 unable to locate 메시지가 떴던거야.
Django 핀터레스트 4
·
카테고리 없음
28강 Decorator 패턴을 이용해서 자주 쓰이는 코드 간소화 from datetime import datetime def function1(): print(datetime.now()) print("Function 1 Start") print(datetime.now()) def function2(): print(datetime.now()) print("Function 2 Start") print(datetime.now()) def function3(): print(datetime.now()) print("Function 3 Start") print(datetime.now()) -> def decorator(func): def decorated(): print(datetime.now()) func() ..
Django Detail View - Authentication까지 날아감
·
카테고리 없음
Dockerfile healthcheck 방법
·
System Engineering/Kubernetes
https://kimjingo.tistory.com/74 [Docker] Dockerfile의 HEALTHCHECK를 이용한 컨테이너 정상 동작 점검(nginx) 다음 도서를 참고하여 작성하였습니다. www.aladin.co.kr/shop/wproduct.aspx?ItemId=166082298 완벽한 IT 인프라 구축을 위한 Docker 컨테이너 기술을 사용한 애플리케이션 실행 환경 플랫폼인 ‘Docker’를 사용.. kimjingo.tistory.com
Django 핀터레스트 2
·
카테고리 없음
23강 django-bootstrap4 라이브러리 사용해서 form을 부트스트랩으로 꾸밈 settings.py에 저거 추가해주면 댐 quick start에 써있음 login.html {% extends 'base.html' %} {% load bootstrap4 %} {% block content %} login {% csrf_token %} {% bootstrap_form form %} {% endblock %} 이렇게 하면 bootstrap이 적용된 form을 사용할 수 있다 이렇게 하면 예쁘게 화면이 바뀜. login.html {% extends 'base.html' %} {% load bootstrap4 %} {% block content %} login {% csrf_token %} {% boo..