본문 바로가기 메뉴 바로가기

AI Platform / Web

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

AI Platform / Web

검색하기 폼
  • 분류 전체보기 (374)
    • 알고리즘 (56)
      • 알고리즘 종류 (20)
      • 백준 (1)
      • sw (30)
    • Web (206)
      • HTML (10)
      • CSS (6)
      • Bootstrap (2)
      • Django (63)
      • JAVASCRIPT (22)
      • typescript (2)
      • Vue.js (10)
      • SQL (2)
      • git (2)
      • 프로젝트구현 (21)
      • React (42)
      • php (2)
      • nodejs (3)
      • nextjs (12)
    • Database (0)
      • MongoDB (0)
    • 빅데이터 (8)
    • 인공지능(Artificial Intelligenc.. (64)
      • python (23)
      • 자연어 처리(natural language pro.. (16)
      • Linear algebra (1)
      • Algorithm (2)
      • Tensorflow (8)
      • speech recongnition (0)
      • 머신러닝 (4)
      • 딥러닝(Deep Learning) (2)
      • CNN (4)
      • RNN (1)
    • 데이터분석 (9)
    • Platform (12)
      • spring boot (9)
    • 라즈베리파이 (5)
    • github (1)
    • 오픈소스 (1)
  • 방명록

thumbnail (1)
[Django] 정적파일(STATIC_JavaScript, CSS, IMAGE) 넣기+ImageField(pillow, imagekit)

정적파일을 불러 오려면 static폴더를 만들어서 관리하고 가져온다. templates에서 정적파일을 모아서 폴더를 만들듯이 app 안에다가 app에서 쓸 정적파일을 모아주면, django가 알아서 가지고 온다. 파일 위치 app_name/static/app_name/images/jpg파일.jpg app_name/static/app_name/stylesheets/style.css + app_name의 static안에 다시 app_name을적어주는 이유는다른앱과 이름이 중복되는 것을 막기 위함이다. base.html 코드 이부분에 아래 처럼 작성하면 base.html 이므로 전체 css 적용이나 전체 jpg 이미지 파일을 적용 할 때 이렇게 작성한다. {% load static %} DOCTYPE html..

Web/Django 2020. 7. 2. 13:53
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • vuejs
  • nodejs
  • logout
  • DFS
  • Deque
  • react autoFocus
  • error:0308010C:digital envelope routines::unsupported
  • next.config.js
  • Python
  • UserCreationForm
  • 클라우데라
  • 자료구조
  • Queue
  • Vue
  • read_csv
  • mongoDB
  • JavaScript
  • django
  • Express
  • TensorFlow
  • useState
  • pandas
  • NextJS
  • login
  • BFS
  • typescript
  • 자연어처리
  • useHistory 안됨
  • react
  • nextjs autoFocus
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바