Fixes #4084: cover on book page links to html.
[wolnelektury.git] / src / wolnelektury / settings / contrib.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 HONEYPOT_FIELD_NAME = 'miut'
5 PAGINATION_INVALID_PAGE_RAISES_404 = True
6 THUMBNAIL_QUALITY = 95
7
8 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
9 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
10
11 MIGRATION_MODULES = {
12     'getpaid': 'wolnelektury.migrations.getpaid',
13 }
14
15 GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}"
16
17 GETPAID_BACKENDS = (
18     'getpaid.backends.payu',
19 )
20
21 PIWIK_URL = ''
22 PIWIK_SITE_ID = 0
23 PIWIK_TOKEN = ''
24
25 PAYPAL_CONFIG = {
26     'mode': 'sandbox',  # sandbox or live
27     'client_id': '',
28     'client_secret': '',
29 }
30
31 REST_FRAMEWORK = {
32     "DEFAULT_RENDERER_CLASSES": (
33         'rest_framework.renderers.JSONRenderer',
34         'rest_framework.renderers.BrowsableAPIRenderer',
35         'api.renderers.LegacyXMLRenderer',
36     ),
37     'DEFAULT_AUTHENTICATION_CLASSES': (
38         'api.drf_auth.PistonOAuthAuthentication',
39         'rest_framework.authentication.SessionAuthentication',
40     )
41 }
42
43
44 DEBUG_TOOLBAR_CONFIG = {
45     'RESULTS_CACHE_SIZE': 100,
46 }
47
48
49 HAYSTACK_CONNECTIONS = {
50     'default': {
51         'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
52     },
53 }
54
55
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'),
62 ]
63 FORMS_BUILDER_HELPTEXT_MAX_LENGTH = 2048
64 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'