2020-01-31 10:49:15 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
2024-10-10 22:54:30 +02:00
|
|
|
#######################################################################
|
|
|
|
# Configuration of your django application
|
|
|
|
#######################################################################
|
2020-01-31 10:49:15 +01:00
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# PyGal Setting
|
2020-01-31 10:49:15 +01:00
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# The root for searching for items
|
|
|
|
ITEM_ROOT = os.path.join(BASE_DIR, 'data', 'example_data')
|
|
|
|
# Set this to True to ensure, that unauthenticated users have no permission (With False they get permiisions to the
|
|
|
|
# structure. You can set public in the item (folde) to make the items visible)
|
|
|
|
#SUSPEND_PUBLIC = False
|
2021-01-21 17:56:28 +01:00
|
|
|
|
2024-10-10 22:54:30 +02:00
|
|
|
# THUMBNAIL_SIZES = [137, 175, 250]
|
|
|
|
# WEBNAIL_SIZES = [450, 1100, 1750]
|
|
|
|
# SORT_BY_DATE = True # Sorting by name if False
|
|
|
|
# SHOW_IMAGE = True
|
|
|
|
# SHOW_VIDEO = True
|
|
|
|
# SHOW_AUDIO = False
|
|
|
|
# SHOW_OTHER = False
|
2021-01-21 17:56:28 +01:00
|
|
|
|
2024-10-10 22:54:30 +02:00
|
|
|
# Access Right settings
|
2021-01-21 17:56:28 +01:00
|
|
|
|
|
|
|
|
2020-01-31 10:49:15 +01:00
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# Users library
|
|
|
|
#
|
|
|
|
# This enables or disables the self registration
|
|
|
|
USERS_SELF_REGISTRATION = False
|
2020-01-31 10:49:15 +01:00
|
|
|
|
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# Themes library
|
2020-01-31 10:49:15 +01:00
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# This defines the default theme, if no theme is set in the django parameters
|
|
|
|
DEFAULT_THEME = 'clear-red'
|
2020-01-31 10:49:15 +01:00
|
|
|
|
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# Django
|
2020-01-31 10:49:15 +01:00
|
|
|
#
|
2024-10-10 22:54:30 +02:00
|
|
|
# This defines the mode of the running server
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
|
DEBUG = False
|
2021-01-21 17:56:28 +01:00
|
|
|
|
2024-10-10 22:54:30 +02:00
|
|
|
# This a the secret key for your application.
|
|
|
|
# SECURITY WARNING: don't run with a dummy secret in production! And don't let others read this key!
|
|
|
|
SECRET_KEY = None
|
2020-01-31 10:49:15 +01:00
|
|
|
|
2024-10-10 22:54:30 +02:00
|
|
|
# This defines the listener hostnames for your django server
|
|
|
|
# SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
|
|
|
|
# ALLOWED_HOSTS = ['<YOUR_SERVER_HOSTNAME>', ]
|
2021-01-21 17:56:28 +01:00
|
|
|
|
2024-10-10 22:54:30 +02:00
|
|
|
# This might be needed for usage in a docker environment
|
|
|
|
# CSRF_TRUSTED_ORIGINS = ['<YOUR_SERVER_URL>', ]
|