1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 HONEYPOT_FIELD_NAME = 'miut'
5 PAGINATION_INVALID_PAGE_RAISES_404 = True
7 THUMBNAIL_ALTERNATIVE_RESOLUTIONS = [2]
9 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
10 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
17 'mode': 'sandbox', # sandbox or live
24 "DEFAULT_RENDERER_CLASSES": (
25 'rest_framework.renderers.JSONRenderer',
26 'rest_framework.renderers.BrowsableAPIRenderer',
27 'api.renderers.LegacyXMLRenderer',
29 'DEFAULT_AUTHENTICATION_CLASSES': (
30 'api.drf_auth.PistonOAuthAuthentication',
31 'rest_framework.authentication.SessionAuthentication',
36 DEBUG_TOOLBAR_CONFIG = {
37 'RESULTS_CACHE_SIZE': 100,
41 HAYSTACK_CONNECTIONS = {
43 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
48 FORMS_BUILDER_USE_SITES = False
49 FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True
50 FORMS_BUILDER_EDITABLE_SLUGS = True
51 FORMS_BUILDER_EXTRA_FIELDS = [
52 (100, 'contact.fields.HeaderField', 'Header'),
53 (101, 'contact.fields.SeparatorField', 'Separator'),
55 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'
56 FORMS_BUILDER_INACTIVE_VISIBLE = True
57 FORMS_BUILDER_TEMPLATE_NAME_P = 'forms/p.html'