[Django APP] django-filer

[Filer Install]

pip install django-filer 
(파일/이미지 관리 앱 설치)

add to projectname/projectname/settings.py


INSTALLED_APPS = [
    'easy_thumbnails',
    'filer',
    'mptt',

]

django-filer Settings

THUMBNAIL_HIGH_RESOLUTION = True
THUMBNAIL_PROCESSORS = (
    'easy_thumbnails.processors.colorspace',
    'easy_thumbnails.processors.autocrop',
    'filer.thumbnail_processors.scale_and_crop_with_subject_location',
    'easy_thumbnails.processors.filters',
)
FILER_CANONICAL_URL = 'canonical/'
FILER_DEBUG = True
FILER_ENABLE_LOGGING = True

add to projectname/projectname/urls.py


from django.urls import include
urlpatterns = [
    path('filer/', include('filer.urls')),

]

python manage.py migrate 

(filer 스키마 생성)

dmain/admin으로 접속하여 Filer 스키마 및 어드민 설치 확인

댓글

이 블로그의 인기 게시물

[Django Install] 11. Install Python3 for Centos8/RedhatLinux8

[windows] filebeat 스케쥴링 테스트

[sqlite] error 조치