static 설정(11강)
-settings.py 설정 -STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") 모든 정적 파일을 한 곳에 모아넣는 경로이다 -Python manage.py collectstatic 하면 static 폴더 생성됨: 모든 static이 모임 -base.css에 디자인 설정 후 연동하기-->head.html의 -{% load static %} 구문을 작성해야 static과 관련된 코드를 작성할 수 있음 -링크 작성하여 static내의 base.css와 연결
django
2021. 7. 15. 23:37