X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e0f595e44766e352edfce0aaf5d32be57f448882..03fc465e6ac5335bb636ae57e8fc2218760f8647:/src/redakcja/settings/__init__.py diff --git a/src/redakcja/settings/__init__.py b/src/redakcja/settings/__init__.py index f4f494c6..bab79380 100644 --- a/src/redakcja/settings/__init__.py +++ b/src/redakcja/settings/__init__.py @@ -1,11 +1,15 @@ # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -import os.path +import os import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from .defaults import * -from ..localsettings import * + +try: + from ..localsettings import * +except ImportError: + pass DATA_UPLOAD_MAX_MEMORY_SIZE = 20000000 @@ -70,6 +74,7 @@ ROOT_URLCONF = 'redakcja.urls' INSTALLED_APPS = ( 'modeltranslation', + 'reversion', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -120,8 +125,6 @@ LOCALE_PATHS = [ LOGIN_REDIRECT_URL = '/documents/user' -MIN_COVER_SIZE = (915, 1270) - LEGIMI_SMALL_WORDS = 2000 LEGIMI_BIG_WORDS = 10000 LEGIMI_SMALL_PRICE = 7