From 5615d45e243c5ee81f20fe15b380d21d6cb724ed Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sun, 21 Jun 2015 10:22:10 -0300 Subject: [PATCH] Use django-admin-bootstrapped --- requirements.txt | 2 ++ sapl/settings.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/requirements.txt b/requirements.txt index 5ed94caad..7e289c97e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,8 @@ MySQL-python psycopg2 beautifulsoup4 model_mommy +django-admin-bootstrapped +django-bootstrap3 ipdb django-extensions diff --git a/sapl/settings.py b/sapl/settings.py index 53a89098a..7960b04e2 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -31,6 +31,7 @@ ALLOWED_HOSTS = ['*'] # Application definition INSTALLED_APPS = ( + 'django_admin_bootstrapped', # must come before django.contrib.admin 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -55,6 +56,7 @@ INSTALLED_APPS = ( # more 'django_extensions', + 'bootstrap3', ) MIDDLEWARE_CLASSES = ( @@ -131,3 +133,5 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_URL = '/static/' + +DAB_FIELD_RENDERER = 'django_admin_bootstrapped.renderers.BootstrapFieldRenderer'