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
23 "DEFAULT_RENDERER_CLASSES": (
24 'rest_framework.renderers.JSONRenderer',
25 'rest_framework.renderers.BrowsableAPIRenderer',
26 'api.renderers.LegacyXMLRenderer',
28 'DEFAULT_AUTHENTICATION_CLASSES': (
29 'api.drf_auth.PistonOAuthAuthentication',
30 'rest_framework.authentication.SessionAuthentication',
35 DEBUG_TOOLBAR_CONFIG = {
36 'RESULTS_CACHE_SIZE': 100,
40 HAYSTACK_CONNECTIONS = {
42 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
47 FORMS_BUILDER_USE_SITES = False
48 FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True
49 FORMS_BUILDER_EDITABLE_SLUGS = True
50 FORMS_BUILDER_EXTRA_FIELDS = [
51 (100, 'contact.fields.HeaderField', 'Header'),
52 (101, 'contact.fields.SeparatorField', 'Separator'),
54 FORMS_BUILDER_HELPTEXT_MAX_LENGTH = 2048
55 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'
56 FORMS_BUILDER_INACTIVE_VISIBLE = True
57 FORMS_BUILDER_TEMPLATE_NAME_P = 'forms/p.html'