projects
/
matthijs
/
upstream
/
django-ldapdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use new-style settings in example
[matthijs/upstream/django-ldapdb.git]
/
settings.py
diff --git
a/settings.py
b/settings.py
index 6b8bbf72c03c59e76ef147f7beb30efc8d114bbe..832a3f40af65ea6e4e2350b1f84b494264b1dcd5 100644
(file)
--- a/
settings.py
+++ b/
settings.py
@@
-17,8
+17,15
@@
DATABASES = {
'PASSWORD': '',
'HOST': '',
'PORT': '',
'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
# 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',
)
'django.contrib.admin',
)
-LDAPDB_BIND_DN="cn=admin,dc=nodomain"
-LDAPDB_BIND_PASSWORD="test"
-LDAPDB_SERVER_URI="ldap://"