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
8 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
9 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
16 'mode': 'sandbox', # sandbox or live
22 "DEFAULT_RENDERER_CLASSES": (
23 'rest_framework.renderers.JSONRenderer',
24 'rest_framework.renderers.BrowsableAPIRenderer',
25 'api.renderers.LegacyXMLRenderer',
27 'DEFAULT_AUTHENTICATION_CLASSES': (
28 'api.drf_auth.PistonOAuthAuthentication',
29 'rest_framework.authentication.SessionAuthentication',
34 DEBUG_TOOLBAR_CONFIG = {
35 'RESULTS_CACHE_SIZE': 100,
39 HAYSTACK_CONNECTIONS = {
41 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
46 FORMS_BUILDER_USE_SITES = False
47 FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True
48 FORMS_BUILDER_EDITABLE_SLUGS = True
49 FORMS_BUILDER_EXTRA_FIELDS = [
50 (100, 'contact.fields.HeaderField', 'Header'),
51 (101, 'contact.fields.SeparatorField', 'Separator'),
53 FORMS_BUILDER_HELPTEXT_MAX_LENGTH = 2048
54 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'
55 FORMS_BUILDER_INACTIVE_VISIBLE = True
56 FORMS_BUILDER_TEMPLATE_NAME_P = 'forms/p.html'