use new-style settings in example
[matthijs/upstream/django-ldapdb.git] / settings.py
1 # Django settings for django-ldapdb project.
2
3 DEBUG = True
4 TEMPLATE_DEBUG = DEBUG
5
6 ADMINS = (
7     # ('Your Name', 'your_email@domain.com'),
8 )
9
10 MANAGERS = ADMINS
11
12 DATABASES = {
13     'default': {
14         'ENGINE': 'django.db.backends.sqlite3',
15         'NAME': 'ldapdb.db',
16         'USER': '',
17         'PASSWORD': '',
18         'HOST': '',
19         'PORT': '',
20     },
21     'ldap': {
22         'ENGINE': 'ldapdb.backends.ldap',
23         'NAME': 'ldap://',
24         'USER': 'cn=admin,dc=nodomain',
25         'PASSWORD': 'test',
26     }
27 }
28 DATABASE_ROUTERS = ['ldapdb.router.Router']
29
30 # Local time zone for this installation. Choices can be found here:
31 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
32 # although not all choices may be available on all operating systems.
33 # On Unix systems, a value of None will cause Django to use the same
34 # timezone as the operating system.
35 # If running in a Windows environment this must be set to the same as your
36 # system time zone.
37 TIME_ZONE = 'America/Chicago'
38
39 # Language code for this installation. All choices can be found here:
40 # http://www.i18nguy.com/unicode/language-identifiers.html
41 LANGUAGE_CODE = 'en-us'
42
43 SITE_ID = 1
44
45 # If you set this to False, Django will make some optimizations so as not
46 # to load the internationalization machinery.
47 USE_I18N = True
48
49 # If you set this to False, Django will not format dates, numbers and
50 # calendars according to the current locale
51 USE_L10N = True
52
53 # Absolute filesystem path to the directory that will hold user-uploaded files.
54 # Example: "/home/media/media.lawrence.com/"
55 MEDIA_ROOT = ''
56
57 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
58 # trailing slash if there is a path component (optional in other cases).
59 # Examples: "http://media.lawrence.com", "http://example.com/media/"
60 MEDIA_URL = ''
61
62 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
63 # trailing slash.
64 # Examples: "http://foo.com/media/", "/media/".
65 ADMIN_MEDIA_PREFIX = '/media/'
66
67 # Make this unique, and don't share it with anybody.
68 SECRET_KEY = 'some_random_secret_key'
69
70 # List of callables that know how to import templates from various sources.
71 TEMPLATE_LOADERS = (
72     'django.template.loaders.filesystem.Loader',
73     'django.template.loaders.app_directories.Loader',
74 #     'django.template.loaders.eggs.Loader',
75 )
76
77 MIDDLEWARE_CLASSES = (
78     'django.middleware.common.CommonMiddleware',
79     'django.contrib.sessions.middleware.SessionMiddleware',
80     'django.middleware.csrf.CsrfViewMiddleware',
81     'django.contrib.auth.middleware.AuthenticationMiddleware',
82     'django.contrib.messages.middleware.MessageMiddleware',
83 )
84
85 ROOT_URLCONF = 'urls'
86
87 TEMPLATE_DIRS = (
88     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
89     # Always use forward slashes, even on Windows.
90     # Don't forget to use absolute paths, not relative paths.
91 )
92
93 INSTALLED_APPS = (
94     'django.contrib.auth',
95     'django.contrib.contenttypes',
96     'django.contrib.sessions',
97     'django.contrib.sites',
98     'ldapdb',
99     'examples',
100     'django.contrib.admin',
101 )
102