1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from fnpdjango.utils.text.textilepl import textile_pl
6 from migdal import EntryType
7 from django.utils.translation import ugettext_lazy as _
9 HONEYPOT_FIELD_NAME = 'miut'
10 PAGINATION_INVALID_PAGE_RAISES_404 = True
11 THUMBNAIL_QUALITY = 95
13 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
14 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
17 'getpaid': 'wolnelektury.migrations.getpaid',
20 GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}"
23 'getpaid.backends.payu',
31 'mode': 'sandbox', # sandbox or live
36 MARKUP_FIELD_TYPES = (
37 ('textile_pl', textile_pl),
41 EntryType('news', _('news'), commentable=False, on_main=True, promotable=True),
42 EntryType('publications', _('publications'), commentable=False),
43 EntryType('info', _('info'), commentable=False),
44 EntryType('event', _('events'), commentable=False),
47 MIGDAL_OPTIONAL_LANGUAGES = (
52 "DEFAULT_RENDERER_CLASSES": (
53 'rest_framework.renderers.JSONRenderer',
54 'rest_framework.renderers.BrowsableAPIRenderer',
55 'api.renderers.LegacyXMLRenderer',
57 'DEFAULT_AUTHENTICATION_CLASSES': (
58 'api.drf_auth.PistonOAuthAuthentication',