From d43f026156438453a4116aed0757cdf710438109 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 16 Jul 2015 18:29:55 -0300 Subject: [PATCH] Install django-crispy-forms --- requirements/requirements.txt | 1 + sapl/settings.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 27abca251..e0e435efc 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -2,6 +2,7 @@ Django django-admin-bootstrapped django-bootstrap3 django-braces +django-crispy-forms django-vanilla-views mysqlclient psycopg2 diff --git a/sapl/settings.py b/sapl/settings.py index 7eb00ffe0..62f7a69c8 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -55,6 +55,7 @@ INSTALLED_APPS = ( # more 'django_extensions', 'bootstrap3', + 'crispy_forms', ) MIDDLEWARE_CLASSES = ( @@ -129,3 +130,6 @@ STATIC_URL = '/static/' DAB_FIELD_RENDERER = \ 'django_admin_bootstrapped.renderers.BootstrapFieldRenderer' + +CRISPY_TEMPLATE_PACK = 'bootstrap3' +CRISPY_FAIL_SILENTLY = not DEBUG