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 from django.utils.translation import ugettext_lazy as _
6 HONEYPOT_FIELD_NAME = 'miut'
7 PAGINATION_INVALID_PAGE_RAISES_404 = True
10 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
11 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
14 'getpaid': 'wolnelektury.migrations.getpaid',
17 GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}"
20 'getpaid.backends.payu',
28 'mode': 'sandbox', # sandbox or live
34 "DEFAULT_RENDERER_CLASSES": (
35 'rest_framework.renderers.JSONRenderer',
36 'rest_framework.renderers.BrowsableAPIRenderer',
37 'api.renderers.LegacyXMLRenderer',
39 'DEFAULT_AUTHENTICATION_CLASSES': (
40 'api.drf_auth.PistonOAuthAuthentication',
41 'rest_framework.authentication.SessionAuthentication',
46 DEBUG_TOOLBAR_CONFIG = {
47 'RESULTS_CACHE_SIZE': 100,
51 HAYSTACK_CONNECTIONS = {
53 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',