use new-style settings in example
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 9 May 2011 05:32:21 +0000 (05:32 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 9 May 2011 05:32:21 +0000 (05:32 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1053 e071eeec-0327-468d-9b6a-08194a12b294

settings.py

index 6b8bbf7..832a3f4 100644 (file)
@@ -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://"