]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/admin/ils_admin/settings.py.example
moving setting.py to settings.py.example so re-installs will not overwrite locally...
[Evergreen.git] / Open-ILS / admin / ils_admin / settings.py.example
1 # Django settings for ils_admin 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 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.
14 DATABASE_SCHEMAS = ''
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.
19
20 """
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
23 """
24
25 OTHER_DATABASES = { 
26     'ils_data': { 
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']
34     },
35 }
36
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'
40
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'
45
46 SITE_ID = 1
47
48 # If you set this to False, Django will make some optimizations so as not
49 # to load the internationalization machinery.
50 USE_I18N = True
51
52 # Absolute path to the directory that holds media.
53 # Example: "/home/media/media.lawrence.com/"
54 MEDIA_ROOT = ''
55
56 # URL that handles the media served from MEDIA_ROOT.
57 # Example: "http://media.lawrence.com"
58 MEDIA_URL = ''
59
60 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
61 # trailing slash.
62 # Examples: "http://foo.com/media/", "/media/".
63 ADMIN_MEDIA_PREFIX = '/media/'
64
65 # Make this unique, and don't share it with anybody.
66 SECRET_KEY = 'rpbefxd0ahnu0pz1hyw6fo$_fj%%op!d9*7bqh0dw=&-^dz8%z'
67
68 # List of callables that know how to import templates from various sources.
69 TEMPLATE_LOADERS = (
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',
73 )
74
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',
80 )
81
82 ROOT_URLCONF = 'ils_admin.urls'
83
84 TEMPLATE_DIRS = (
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'
89 )
90
91 INSTALLED_APPS = (
92     'django.contrib.auth',
93     'django.contrib.contenttypes',
94     'django.contrib.sessions',
95     'django.contrib.sites',
96     'django.contrib.admin',
97     'ils_admin.setup',
98     'ils_admin.setup.ils_data', # load the ILS models
99 )
100