Moving away from getpaid for now.
[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_BACKENDS = (
16     'getpaid.backends.payu',
17 )
18
19 PIWIK_URL = ''
20 PIWIK_SITE_ID = 0
21 PIWIK_TOKEN = ''
22
23 PAYPAL_CONFIG = {
24     'mode': 'sandbox',  # sandbox or live
25     'client_id': '',
26     'client_secret': '',
27 }
28
29 REST_FRAMEWORK = {
30     "DEFAULT_RENDERER_CLASSES": (
31         'rest_framework.renderers.JSONRenderer',
32         'rest_framework.renderers.BrowsableAPIRenderer',
33         'api.renderers.LegacyXMLRenderer',
34     ),
35     'DEFAULT_AUTHENTICATION_CLASSES': (
36         'api.drf_auth.PistonOAuthAuthentication',
37         'rest_framework.authentication.SessionAuthentication',
38     )
39 }
40
41
42 DEBUG_TOOLBAR_CONFIG = {
43     'RESULTS_CACHE_SIZE': 100,
44 }
45
46
47 HAYSTACK_CONNECTIONS = {
48     'default': {
49         'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
50     },
51 }
52
53
54 FORMS_BUILDER_USE_SITES = False
55 FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True
56 FORMS_BUILDER_EDITABLE_SLUGS = True
57 FORMS_BUILDER_EXTRA_FIELDS = [
58         (100, 'contact.fields.HeaderField', 'Header'),
59         (101, 'contact.fields.SeparatorField', 'Separator'),
60 ]
61 FORMS_BUILDER_HELPTEXT_MAX_LENGTH = 2048
62 FORMS_BUILDER_REQUIRED_CSS_CLASS = 'required'