From 10d9cb9dd51a4bd47167fd58d101db077184ffe3 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Wed, 6 Dec 2017 17:23:32 -0200 Subject: [PATCH] Update plugins config files Signed-off-by: Matheus Fernandes --- misc/etc/colab/plugins.d/edemocracia.py | 10 +++++++++- misc/etc/colab/plugins.d/tos.py | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/etc/colab/plugins.d/edemocracia.py b/misc/etc/colab/plugins.d/edemocracia.py index dd6d4f44..8055f4ab 100644 --- a/misc/etc/colab/plugins.d/edemocracia.py +++ b/misc/etc/colab/plugins.d/edemocracia.py @@ -13,7 +13,7 @@ middlewares = ['colab_edemocracia.middlewares.ForceLangMiddleware'] dependencies = ['djangobower', 'compressor', 'easy_thumbnails', - 'image_cropping', 'widget_tweaks', 'macros'] + 'image_cropping', 'widget_tweaks', 'macros', 'rest_framework'] context_processors = ['colab_edemocracia.processors.recaptcha_site_key', 'colab_edemocracia.processors.home_customization'] @@ -48,4 +48,12 @@ 'RECAPTCHA_PRIVATE_KEY': config('RECAPTCHA_PRIVATE_KEY', default=''), 'SITE_NAME': config('SITE_NAME', default='Nome do site'), 'SITE_LOGO': config('SITE_LOGO', default='https://exemple.com/img.png'), + 'COMPRESS_ENABLED': True, + 'COMPRESS_OFFLINE': True, + 'REST_FRAMEWORK': { + 'DEFAULT_RENDERER_CLASSES': ( + 'rest_framework.renderers.JSONRenderer', + ), + 'PAGE_SIZE': 20 + }, } diff --git a/misc/etc/colab/plugins.d/tos.py b/misc/etc/colab/plugins.d/tos.py index 88f61e73..cbb4829c 100644 --- a/misc/etc/colab/plugins.d/tos.py +++ b/misc/etc/colab/plugins.d/tos.py @@ -19,4 +19,4 @@ urls = { 'include': 'colab_mkdocs_tos.urls', 'prefix': '^sobre/', -} \ No newline at end of file +}