root / commissioning / servers / quotaholder / quotaholder_django / settings.py @ 9619cc64
History | View | Annotate | Download (3.7 kB)
1 |
|
---|---|
2 |
DEBUG = True
|
3 |
TEMPLATE_DEBUG = DEBUG |
4 |
|
5 |
DATABASES = { |
6 |
'default': {
|
7 |
# Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
8 |
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
9 |
'NAME': 'holder', # Or path to database file if using sqlite3. |
10 |
'USER': 'holder', # Not used with sqlite3. |
11 |
'PASSWORD': 'holder', # Not used with sqlite3. |
12 |
'HOST': 'dev84.dev.grnet.gr', # Set to empty string for localhost. Not used with sqlite3. |
13 |
'PORT': '5432', # Set to empty string for default. Not used with sqlite3. |
14 |
} |
15 |
} |
16 |
|
17 |
from commissioning.utils.pyconf import pyconf_globals |
18 |
pyconf_globals('/etc/fscrud/django.conf')
|
19 |
|
20 |
COMMISSIONING_APP_NAME='quotaholder'
|
21 |
|
22 |
ADMINS = ( |
23 |
# ('Your Name', 'your_email@domain.com'),
|
24 |
) |
25 |
|
26 |
MANAGERS = ADMINS |
27 |
|
28 |
# Local time zone for this installation. Choices can be found here:
|
29 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
30 |
# although not all choices may be available on all operating systems.
|
31 |
# On Unix systems, a value of None will cause Django to use the same
|
32 |
# timezone as the operating system.
|
33 |
# If running in a Windows environment this must be set to the same as your
|
34 |
# system time zone.
|
35 |
TIME_ZONE = 'Europe/Athens'
|
36 |
|
37 |
# Language code for this installation. All choices can be found here:
|
38 |
# http://www.i18nguy.com/unicode/language-identifiers.html
|
39 |
LANGUAGE_CODE = 'en-us'
|
40 |
|
41 |
SITE_ID = 1
|
42 |
|
43 |
# If you set this to False, Django will make some optimizations so as not
|
44 |
# to load the internationalization machinery.
|
45 |
USE_I18N = True
|
46 |
|
47 |
# If you set this to False, Django will not format dates, numbers and
|
48 |
# calendars according to the current locale
|
49 |
USE_L10N = True
|
50 |
|
51 |
# Absolute path to the directory that holds media.
|
52 |
# Example: "/home/media/media.lawrence.com/"
|
53 |
MEDIA_ROOT = ''
|
54 |
|
55 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
56 |
# trailing slash if there is a path component (optional in other cases).
|
57 |
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
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 = 'ee=*x%x6sp=hcm7j4zzkvpam27g*7*d59fca-q!azaqma!jx*+'
|
67 |
|
68 |
# List of callables that know how to import templates from various sources.
|
69 |
TEMPLATE_LOADERS = ( |
70 |
'django.template.loaders.filesystem.Loader',
|
71 |
'django.template.loaders.app_directories.Loader',
|
72 |
# 'django.template.loaders.eggs.Loader',
|
73 |
) |
74 |
|
75 |
MIDDLEWARE_CLASSES = ( |
76 |
'django.middleware.common.CommonMiddleware',
|
77 |
#'django.middleware.transaction.TransactionMiddleware',
|
78 |
#'django.contrib.sessions.middleware.SessionMiddleware',
|
79 |
#'django.middleware.csrf.CsrfViewMiddleware',
|
80 |
#'django.contrib.auth.middleware.AuthenticationMiddleware',
|
81 |
#'django.contrib.messages.middleware.MessageMiddleware',
|
82 |
) |
83 |
|
84 |
ROOT_URLCONF = 'urls'
|
85 |
|
86 |
TEMPLATE_DIRS = ( |
87 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
88 |
# Always use forward slashes, even on Windows.
|
89 |
# Don't forget to use absolute paths, not relative paths.
|
90 |
) |
91 |
|
92 |
INSTALLED_APPS = ( |
93 |
#'django.contrib.auth',
|
94 |
'django.contrib.contenttypes',
|
95 |
#'django.contrib.sessions',
|
96 |
#'django.contrib.sites',
|
97 |
#'django.contrib.messages',
|
98 |
#('commissioning.%s.backends.django_backend'
|
99 |
# % (COMMISSIONING_APP_NAME,)),
|
100 |
'commissioning.servers.django_server.server_app',
|
101 |
# Uncomment the next line to enable the admin:
|
102 |
# 'django.contrib.admin',
|
103 |
# Uncomment the next line to enable admin documentation:
|
104 |
# 'django.contrib.admindocs',
|
105 |
) |