[Django APP] django-filer
[Filer Install]
pip install django-filer
(파일/이미지 관리 앱 설치)
add to projectname/projectname/settings.py
# django-filer Settings
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
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 스키마 및 어드민 설치 확인
python manage.py migrate
(filer 스키마 생성)
dmain/admin으로 접속하여 Filer 스키마 및 어드민 설치 확인
댓글
댓글 쓰기