diff --git a/app/conf/common.py b/app/conf/common.py index 7faff01..61ba8af 100644 --- a/app/conf/common.py +++ b/app/conf/common.py @@ -28,6 +28,7 @@ TEMPLATE_LOADERS = ( MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'sso.middleware.InactiveLogoutMiddleware', @@ -107,3 +108,19 @@ CELERY_EAGER_PROPAGATES_EXCEPTIONS = DEBUG # Load the Celery tasks djcelery.setup_loader() + +GARGOYLE_AUTO_CREATE = True + +# Switches for Gargoyle +GARGOYLE_SWITCH_DEFAULTS = { + 'reddit': { + 'is_active': True, + 'label': 'Reddit Functionality', + 'description': 'Enables/Disables the Reddit integration for HR and SSO.', + }, + 'hr': { + 'is_active': True, + 'label': 'HR Functions', + 'description': 'Enables/Disables the HR functionality.', + }, +} diff --git a/requirements.txt b/requirements.txt index c5340d5..7943995 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,4 @@ django-celery==2.2.4 xmpppy django-sentry nexus -gargoyle +-e git+https://nikdoof@github.com/nikdoof/gargoyle.git@dca57fc4b437b85f8cbc#egg=gargoyle