Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/settings/common.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
# Static files (CSS, JavaScript, Images) | # Static files (CSS, JavaScript, Images) | ||||
# https://docs.djangoproject.com/en/1.10/howto/static-files/ | # https://docs.djangoproject.com/en/1.10/howto/static-files/ | ||||
STATIC_URL = "/static/" | STATIC_URL = "/static/" | ||||
REST_FRAMEWORK = { | REST_FRAMEWORK = { | ||||
"DEFAULT_AUTHENTICATION_CLASSES": ( | "DEFAULT_AUTHENTICATION_CLASSES": ("swh.deposit.auth.KeycloakBasicAuthentication",), | ||||
"rest_framework.authentication.BasicAuthentication", | |||||
), | |||||
"EXCEPTION_HANDLER": "swh.deposit.exception.custom_exception_handler", | "EXCEPTION_HANDLER": "swh.deposit.exception.custom_exception_handler", | ||||
} | } | ||||
FILE_UPLOAD_HANDLERS = [ | FILE_UPLOAD_HANDLERS = [ | ||||
"django.core.files.uploadhandler.MemoryFileUploadHandler", | "django.core.files.uploadhandler.MemoryFileUploadHandler", | ||||
"django.core.files.uploadhandler.TemporaryFileUploadHandler", | "django.core.files.uploadhandler.TemporaryFileUploadHandler", | ||||
] | ] | ||||
CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache",}} |