From 0b623815001f94b52d41b8ced53638d042ca9856 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 9 May 2011 05:32:21 +0000 Subject: [PATCH] use new-style settings in example git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1053 e071eeec-0327-468d-9b6a-08194a12b294 --- settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/settings.py b/settings.py index 6b8bbf7..832a3f4 100644 --- a/settings.py +++ b/settings.py @@ -17,8 +17,15 @@ DATABASES = { 'PASSWORD': '', 'HOST': '', 'PORT': '', + }, + 'ldap': { + 'ENGINE': 'ldapdb.backends.ldap', + 'NAME': 'ldap://', + 'USER': 'cn=admin,dc=nodomain', + 'PASSWORD': 'test', } } +DATABASE_ROUTERS = ['ldapdb.router.Router'] # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name @@ -93,6 +100,3 @@ INSTALLED_APPS = ( 'django.contrib.admin', ) -LDAPDB_BIND_DN="cn=admin,dc=nodomain" -LDAPDB_BIND_PASSWORD="test" -LDAPDB_SERVER_URI="ldap://" -- 2.30.2