Filter (1) 썸네일형 리스트형 Django Template filter tag 만들기 # custom template filter tag 1. 원하는 곳에 폴더/파일 생성 ex) 프로젝트 최상단에 templatetags/replaceto.py 생성 2. settings.py 의 TEMPLATES에 등록 TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR / 'templates'], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', '.. 이전 1 다음