1 # Django settings for ils_admin project.
7 # ('Your Name', 'your_email@domain.com'),
12 DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
13 DATABASE_NAME = '/openils/var/data/django.db' # Or path to database file if using sqlite3.
15 DATABASE_USER = '' # Not used with sqlite3.
16 DATABASE_PASSWORD = '' # Not used with sqlite3.
17 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
18 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
21 2007-03-28: the "django" user in the primary ILS database needs to have
22 the following schemas set in the default search path: actor, permission, public, config
27 'DATABASE_ENGINE' : 'postgresql_psycopg2',
28 'DATABASE_NAME' : 'evergreen',
29 'DATABASE_HOST' : '127.0.0.1',
30 'DATABASE_PORT' : '5432',
31 'DATABASE_USER' : 'django',
32 'DATABASE_PASSWORD' : '',
33 'MODELS': ['ils_data']
37 # Local time zone for this installation. All choices can be found here:
38 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
39 TIME_ZONE = 'America/New_York'
41 # Language code for this installation. All choices can be found here:
42 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
43 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
44 LANGUAGE_CODE = 'en-us'
48 # If you set this to False, Django will make some optimizations so as not
49 # to load the internationalization machinery.
52 # Absolute path to the directory that holds media.
53 # Example: "/home/media/media.lawrence.com/"
56 # URL that handles the media served from MEDIA_ROOT.
57 # Example: "http://media.lawrence.com"
60 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
62 # Examples: "http://foo.com/media/", "/media/".
63 ADMIN_MEDIA_PREFIX = '/media/'
65 # Make this unique, and don't share it with anybody.
66 SECRET_KEY = 'rpbefxd0ahnu0pz1hyw6fo$_fj%%op!d9*7bqh0dw=&-^dz8%z'
68 # List of callables that know how to import templates from various sources.
70 'django.template.loaders.filesystem.load_template_source',
71 'django.template.loaders.app_directories.load_template_source',
72 # 'django.template.loaders.eggs.load_template_source',
75 MIDDLEWARE_CLASSES = (
76 'django.middleware.common.CommonMiddleware',
77 'django.contrib.sessions.middleware.SessionMiddleware',
78 'django.contrib.auth.middleware.AuthenticationMiddleware',
79 'django.middleware.doc.XViewMiddleware',
82 ROOT_URLCONF = 'ils_admin.urls'
85 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
86 # Always use forward slashes, even on Windows.
87 # Don't forget to use absolute paths, not relative paths.
88 '/openils/var/admin/ils_admin/templates/default'
92 'django.contrib.auth',
93 'django.contrib.contenttypes',
94 'django.contrib.sessions',
95 'django.contrib.sites',
96 'django.contrib.admin',
98 'ils_admin.setup.ils_data', # load the ILS models