-
Notifications
You must be signed in to change notification settings - Fork 0
Initial configuration
Cédric Joron edited this page Aug 28, 2013
·
8 revisions
Before using LBE, you need to configure the application. Modify and replace values from /opt/lbe/lbe/setting.py with your own values for sections:
- DATABASE
- LDAP_SERVER
- MONGODB_SERVER
Example:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'lbe',
'USER': 'lbe',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '', # leave blank if mysql is running on the same host
}
}
LDAP_SERVER = {
'HOST': 'localhost',
'PORT': 389,
'BASE_DN': 'dc=example,dc=com',
'BIND_DN': 'cn=Directory Manager',
'BIND_PWD': 'password'
}
MONGODB_SERVER = {
'HOST': 'localhost',
'PORT': 27017,
'DATABASE': 'lbe',
'USER': '', # In order to not use the auth service, just put the USER value to blank.
'PASSWORD': 'password',
}Create the database
python manage.py syncdb
Juste Follow instruction.
After making syncdb, you should see a migration message. Do not panic, it is normal. In order to create the rest of database, you need to write this line:
./manage.py migrate
Then, it will create from file the rest of database.
After this step done, you need to import initial SQL datas :
python manage.py loaddata directory/fixtures/sample_data.yaml
You are ready to read the tutorial for using LBE:
https://github.com/OpenCSI/lbe/wiki/Create-Import-Object (for create and import Object from LDAP or if you only want to create a Object Template, begin to read from Object Template Part. )