Use remote builder
[redakcja.git] / src / redakcja / settings / __init__.py
index 45c5e50..bab7938 100644 (file)
@@ -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',
@@ -107,6 +112,8 @@ INSTALLED_APPS = (
     'wlxml.apps.WlxmlConfig',
     'alerts',
     'team',
+    'sources',
+    'isbn',
 )
 
 if DEBUG:
@@ -118,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
@@ -153,7 +158,7 @@ PIPELINE = {
                 'css/history.css',
                 'css/summary.css',
                 'css/imgareaselect-default.css',
-                'css/dialogs.css',
+                'css/dialogs.scss',
 
                 'wiki/scss/splitter.scss',
                 'wiki/scss/visual.scss'
@@ -199,6 +204,8 @@ PIPELINE = {
                 # base UI
                 'js/wiki/base.js',
                 'js/wiki/toolbar.js',
+                'js/lib/diff.js',
+                'js/wiki/undo.js',
 
                 # dialogs
                 'js/wiki/dialog_save.js',