Settings¶
Django-rgallery has a number of settings that control its behavior. They’ve been given sensible defaults.
Base settings¶
- django.conf.settings.GALLERY_DESCRIPTION¶
Example: 'This is my new gallery' String that describes your gallery
- django.conf.settings.GALLERY_KEYWORDS¶
Example: 'photos, moblog, photography, photoblog, shots' String with comma separated keywords that describes your gallery
- django.conf.settings.DROPBOX_APP_KEY¶
Example: d232fg3f234d32 Just in case you want to use dropbox as backend, we need the APP_KEY that dropbox gives to you when you create your app there.
- django.conf.settings.DROPBOX_APP_SECRET¶
Example: fn5njgkl2n5gnb5 Just in case you want to use dropbox as backend, we need the APP_SECRET that dropbox gives to you when you create your app there.
- django.conf.settings.DROPBOX_ACCESS_TYPE¶
Example: app_folder or dropbox If the access is dropbox you need to specify the path, if it’s app_folder it is ok with /
- django.conf.settings.DROPBOX_ACCESS_PATH¶
Example: / or custom_path/ The path where the photos are stored in Dropbox, to export from there to our rgallery instance.
- django.conf.settings.RGALLLERY_THUMBS¶
Example: [60, 200, 750, 1000] The list of sizes you want to make thumbnail, it mainly depends on the use of the photo you will make in template.
- django.conf.settings.FFPROBE¶
Example: /opt/local/bin/ffprobe The path to ffprobe command in your system.
- django.conf.settings.FFMPEG¶
Example: /opt/local/bin/ffmpeg The path to ffmpeg command in your system.
- django.conf.settings.FFMPEG_VCODEC_THUMB¶
Example: png The photo (from video) format.
- django.conf.settings.FFMPEG_THUMB_SIZE¶
Example: 444x250 The photo (from video) thumb size.
- django.conf.settings.FFMPEG_THUMB_SIZE_INVERSE¶
Example: 250x444 The photo (from video) thumb inversed size.
Settings example¶
########## DJANGO-RGALLERY
GALLERY_DESCRIPTION = 'Moblog, day by day photos, shots usually from mobile'
GALLERY_KEYWORDS = 'photo, fotoblog, daily photos, moblog, photoblog, shots'
DROPBOX_APP_KEY = '123d32d23dwfqwf'
DROPBOX_APP_SECRET = 'b567brb45n45n'
DROPBOX_ACCESS_TYPE = 'app_folder'
DROPBOX_ACCESS_PATH = '/'
RGALLLERY_THUMBS = [60, 200, 750, 1000]
FFPROBE = '/opt/local/bin/ffprobe'
FFMPEG = '/opt/local/bin/ffmpeg'
FFMPEG_VCODEC_THUMB = 'png'
FFMPEG_THUMB_SIZE = '444x250'
FFMPEG_THUMB_SIZE_INVERSE = '250x444'
########## DJANGO-RGALLERY