'rest_framework.authentication.SessionAuthentication', ), # 'DEFAULT_PERMISSION_CLASSES': ('pretalx.api.permissions.ApiPermission',) 'DEFAULT_FILTER_BACKENDS': ( 'rest_framework.filters.SearchFilter', 'django_filters.rest_framework.DjangoFilterBackend', ), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 25, 'SEARCH_PARAM': 'q', 'ORDERING_PARAM': 'o', 'VERSIONING_PARAM': 'v', } if DEBUG: REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] += ( 'rest_framework.renderers.BrowsableAPIRenderer', ) REST_FRAMEWORK['COMPACT_JSON'] = False WSGI_APPLICATION = 'pretalx.wsgi.application' log_initial(DEBUG=DEBUG, config_files=config_files, db_name=db_name, db_backend=db_backend, LOG_DIR=LOG_DIR, plugins=PLUGINS)
"VERSIONING_PARAM": "v", "DATETIME_FORMAT": "iso-8601", } if DEBUG: REST_FRAMEWORK["COMPACT_JSON"] = False WSGI_APPLICATION = "pretalx.wsgi.application" PRETALX_VERSION = __version__ if DEBUG: with suppress(Exception): import subprocess PRETALX_VERSION = ( subprocess.check_output(["/usr/bin/git", "describe", "--always"]) .decode() .strip() ) with suppress(ImportError): from .override_settings import * # noqa log_initial( debug=DEBUG, config_files=CONFIG_FILES, db_name=db_name, db_backend=db_backend, LOG_DIR=LOG_DIR, plugins=PLUGINS, )
'pretalx.agenda.views.htmlexport.ExportFrabJsonView', 'pretalx.agenda.views.htmlexport.ExportICalView', 'pretalx.agenda.views.htmlexport.ExportScheduleVersionsView', 'pretalx.agenda.views.htmlexport.ExportTalkView', 'pretalx.agenda.views.htmlexport.ExportTalkICalView', 'pretalx.agenda.views.htmlexport.ExportSpeakerView', ) REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': ('i18nfield.rest_framework.I18nJSONRenderer',), 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', ), # 'DEFAULT_PERMISSION_CLASSES': ('pretalx.api.permissions.ApiPermission',) 'DEFAULT_FILTER_BACKENDS': ( 'rest_framework.filters.SearchFilter', 'django_filters.rest_framework.DjangoFilterBackend', ), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 25, 'SEARCH_PARAM': 'q', 'ORDERING_PARAM': 'o', 'VERSIONING_PARAM': 'v', } if DEBUG: REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] += ('rest_framework.renderers.BrowsableAPIRenderer',) REST_FRAMEWORK['COMPACT_JSON'] = False WSGI_APPLICATION = 'pretalx.wsgi.application' log_initial(DEBUG, config_files, db_name, db_backend, LOG_DIR)