ajout d'exemple de configurations
authorPatrick Hetu <patrick.hetu@auf.org>
Tue, 25 Nov 2014 22:06:10 +0000 (17:06 -0500)
committerPatrick Hetu <patrick.hetu@auf.org>
Tue, 25 Nov 2014 22:06:10 +0000 (17:06 -0500)
configurations/django_auf/piwik/settings/10-piwik.py [new file with mode: 0644]
configurations/django_auf/saml/settings/50-saml.py [new file with mode: 0644]
configurations/django_auf/saml/urls/50-saml.py [new file with mode: 0644]
configurations/django_auf_admin/memcached/settings/10-memcached.py [new file with mode: 0644]
configurations/django_auf_dev/django-debug-toolbar/settings/50-debug-toolbar-local.py [new file with mode: 0644]

diff --git a/configurations/django_auf/piwik/settings/10-piwik.py b/configurations/django_auf/piwik/settings/10-piwik.py
new file mode 100644 (file)
index 0000000..ae65596
--- /dev/null
@@ -0,0 +1,6 @@
+PIWIK_TOKEN = ''
+
+MIDDLEWARE_CLASSES += (
+    'auf.django.piwik.middleware.TrackMiddleware',
+)
+
diff --git a/configurations/django_auf/saml/settings/50-saml.py b/configurations/django_auf/saml/settings/50-saml.py
new file mode 100644 (file)
index 0000000..b5f0a2c
--- /dev/null
@@ -0,0 +1,11 @@
+INSTALLED_APPS += (
+    'auf.django.saml',
+)
+
+MIDDLEWARE_CLASSES += (
+    'auf.django.saml.middleware.SPMiddleware',
+)
+
+AUTHENTICATION_BACKENDS = (
+    'auf.django.saml.backends.SPBackend',
+)
diff --git a/configurations/django_auf/saml/urls/50-saml.py b/configurations/django_auf/saml/urls/50-saml.py
new file mode 100644 (file)
index 0000000..0e64006
--- /dev/null
@@ -0,0 +1,12 @@
+from auf.django.saml import settings as saml_settings
+
+urlpatterns += patterns(
+    '',
+    (r'^', include('auf.django.saml.urls')),
+)
+
+if not saml_settings.SAML_AUTH:
+    urlpatterns += patterns(
+            '',
+            (r'^', include('auf.django.saml.mellon_urls')),
+    )
diff --git a/configurations/django_auf_admin/memcached/settings/10-memcached.py b/configurations/django_auf_admin/memcached/settings/10-memcached.py
new file mode 100644 (file)
index 0000000..e021fd7
--- /dev/null
@@ -0,0 +1,7 @@
+CACHES = {
+    'default': {
+        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+        'LOCATION': '127.0.0.1:11211',
+    }
+}
+
diff --git a/configurations/django_auf_dev/django-debug-toolbar/settings/50-debug-toolbar-local.py b/configurations/django_auf_dev/django-debug-toolbar/settings/50-debug-toolbar-local.py
new file mode 100644 (file)
index 0000000..3c27351
--- /dev/null
@@ -0,0 +1,3 @@
+DEBUG_TOOLBAR_CONFIG = {
+    'INTERCEPT_REDIRECTS': False,
+}