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'
12 'getpaid': 'wolnelektury.migrations.getpaid',
15 GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}"
18 'getpaid.backends.payu',
26 'mode': 'sandbox', # sandbox or live
32 "DEFAULT_RENDERER_CLASSES": (
33 'rest_framework.renderers.JSONRenderer',
34 'rest_framework.renderers.BrowsableAPIRenderer',
35 'api.renderers.LegacyXMLRenderer',
37 'DEFAULT_AUTHENTICATION_CLASSES': (
38 'api.drf_auth.PistonOAuthAuthentication',
39 'rest_framework.authentication.SessionAuthentication',
44 DEBUG_TOOLBAR_CONFIG = {
45 'RESULTS_CACHE_SIZE': 100,
49 HAYSTACK_CONNECTIONS = {
51 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
56 FORMS_BUILDER_USE_SITES = False
57 FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True
58 FORMS_BUILDER_EDITABLE_SLUGS = True
59 FORMS_BUILDER_EXTRA_FIELDS = [
60 (100, 'contact.fields.HeaderField', 'Header'),
61 (101, 'contact.fields.SeparatorField', 'Separator'),
63 FORMS_BUILDER_HELPTEXT_MAX_LENGTH = 2048
64 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'