]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/admin/ils_admin/settings.py
Adding basic django admin sight.
[Evergreen.git] / Open-ILS / admin / ils_admin / settings.py
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 = 'postgresql'           # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
13 DATABASE_NAME = ''             # Or path to database file if using sqlite3.
14 DATABASE_SCHEMAS = 'public, permission, actor'          # Only used with postgresq to support multiple 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 # Local time zone for this installation. All choices can be found here:
21 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
22 TIME_ZONE = 'America/New_York'
23
24 # Language code for this installation. All choices can be found here:
25 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
26 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
27 LANGUAGE_CODE = 'en-us'
28
29 SITE_ID = 1
30
31 # If you set this to False, Django will make some optimizations so as not
32 # to load the internationalization machinery.
33 USE_I18N = True
34
35 # Absolute path to the directory that holds media.
36 # Example: "/home/media/media.lawrence.com/"
37 MEDIA_ROOT = ''
38
39 # URL that handles the media served from MEDIA_ROOT.
40 # Example: "http://media.lawrence.com"
41 MEDIA_URL = ''
42
43 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
44 # trailing slash.
45 # Examples: "http://foo.com/media/", "/media/".
46 ADMIN_MEDIA_PREFIX = '/media/'
47
48 # Make this unique, and don't share it with anybody.
49 SECRET_KEY = 'rpbefxd0ahnu0pz1hyw6fo$_fj%%op!d9*7bqh0dw=&-^dz8%z'
50
51 # List of callables that know how to import templates from various sources.
52 TEMPLATE_LOADERS = (
53     'django.template.loaders.filesystem.load_template_source',
54     'django.template.loaders.app_directories.load_template_source',
55 #     'django.template.loaders.eggs.load_template_source',
56 )
57
58 MIDDLEWARE_CLASSES = (
59     'django.middleware.common.CommonMiddleware',
60     'django.contrib.sessions.middleware.SessionMiddleware',
61     'django.contrib.auth.middleware.AuthenticationMiddleware',
62     'django.middleware.doc.XViewMiddleware',
63 )
64
65 ROOT_URLCONF = 'ils_admin.urls'
66
67 TEMPLATE_DIRS = (
68     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
69     # Always use forward slashes, even on Windows.
70     # Don't forget to use absolute paths, not relative paths.
71          '/openils/var/admin/ils_admin/templates/default'
72 )
73
74 INSTALLED_APPS = (
75     'django.contrib.auth',
76     'django.contrib.contenttypes',
77     'django.contrib.sessions',
78     'django.contrib.sites',
79          'django.contrib.admin',
80          'ils_admin.setup',
81 )
82