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 django.utils.translation import ugettext_lazy as _
7 HONEYPOT_FIELD_NAME = 'miut'
8 PAGINATION_INVALID_PAGE_RAISES_404 = True
11 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
12 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
15 'getpaid': 'wolnelektury.migrations.getpaid',
18 GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}"
21 'getpaid.backends.payu',
29 'mode': 'sandbox', # sandbox or live
35 "DEFAULT_RENDERER_CLASSES": (
36 'rest_framework.renderers.JSONRenderer',
37 'rest_framework.renderers.BrowsableAPIRenderer',
38 'api.renderers.LegacyXMLRenderer',
40 'DEFAULT_AUTHENTICATION_CLASSES': (
41 'api.drf_auth.PistonOAuthAuthentication',
42 'rest_framework.authentication.SessionAuthentication',
47 DEBUG_TOOLBAR_CONFIG = {
48 'RESULTS_CACHE_SIZE': 100,
52 HAYSTACK_CONNECTIONS = {
54 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',