root / settings.py.dist @ edda4d30
History | View | Annotate | Download (3.8 kB)
1 |
# -*- coding: utf-8 -*- |
---|---|
2 |
|
3 |
# Django settings for synnefo project. |
4 |
|
5 |
DEBUG = True |
6 |
TEMPLATE_DEBUG = DEBUG |
7 |
|
8 |
ADMINS = ( |
9 |
# ('Your Name', 'your_email@domain.com'), |
10 |
) |
11 |
|
12 |
MANAGERS = ADMINS |
13 |
|
14 |
DATABASES = { |
15 |
'default': { |
16 |
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
17 |
'NAME': '', # Or path to database file if using sqlite3. |
18 |
'USER': '', # Not used with sqlite3. |
19 |
'PASSWORD': '', # Not used with sqlite3. |
20 |
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
21 |
'PORT': '', # Set to empty string for default. Not used with sqlite3. |
22 |
} |
23 |
} |
24 |
|
25 |
SESSION_ENGINE = "django.contrib.sessions.backends.cache" |
26 |
|
27 |
# Local time zone for this installation. Choices can be found here: |
28 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
29 |
# although not all choices may be available on all operating systems. |
30 |
# On Unix systems, a value of None will cause Django to use the same |
31 |
# timezone as the operating system. |
32 |
# If running in a Windows environment this must be set to the same as your |
33 |
# system time zone. |
34 |
TIME_ZONE = 'America/Chicago' |
35 |
|
36 |
# Language code for this installation. All choices can be found here: |
37 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
38 |
LANGUAGE_CODE = 'en-us' |
39 |
|
40 |
SITE_ID = 1 |
41 |
|
42 |
# If you set this to False, Django will make some optimizations so as not |
43 |
# to load the internationalization machinery. |
44 |
USE_I18N = True |
45 |
|
46 |
# If you set this to False, Django will not format dates, numbers and |
47 |
# calendars according to the current locale |
48 |
USE_L10N = True |
49 |
|
50 |
# Absolute path to the directory that holds media. |
51 |
# Example: "/home/media/media.lawrence.com/" |
52 |
MEDIA_ROOT = '' |
53 |
|
54 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
55 |
# trailing slash if there is a path component (optional in other cases). |
56 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
57 |
MEDIA_URL = '' |
58 |
|
59 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
60 |
# trailing slash. |
61 |
# Examples: "http://foo.com/media/", "/media/". |
62 |
ADMIN_MEDIA_PREFIX = '/media/' |
63 |
|
64 |
# our REST API would prefer to be explicit about trailing slashes |
65 |
APPEND_SLASH = False |
66 |
|
67 |
# Make this unique, and don't share it with anybody. |
68 |
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg' |
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 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
78 |
"django.core.context_processors.request", |
79 |
'django.core.context_processors.i18n', |
80 |
) |
81 |
|
82 |
MIDDLEWARE_CLASSES = ( |
83 |
'django.contrib.sessions.middleware.SessionMiddleware', |
84 |
'django.middleware.locale.LocaleMiddleware', |
85 |
'django.middleware.common.CommonMiddleware', |
86 |
'synnefo.middleware.StripURLMiddleware', |
87 |
#'django.middleware.csrf.CsrfViewMiddleware', |
88 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
89 |
'django.contrib.messages.middleware.MessageMiddleware', |
90 |
) |
91 |
|
92 |
ROOT_URLCONF = 'synnefo.urls' |
93 |
|
94 |
TEMPLATE_DIRS = ( |
95 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
96 |
# Always use forward slashes, even on Windows. |
97 |
# Don't forget to use absolute paths, not relative paths. |
98 |
) |
99 |
|
100 |
INSTALLED_APPS = ( |
101 |
'django.contrib.auth', |
102 |
'django.contrib.contenttypes', |
103 |
'django.contrib.sessions', |
104 |
'django.contrib.sites', |
105 |
'django.contrib.messages', |
106 |
# 'django.contrib.admin', |
107 |
# 'django.contrib.admindocs', |
108 |
'synnefo.auth', |
109 |
'synnefo.api', |
110 |
'synnefo.ui', |
111 |
) |
112 |
|
113 |
GANETI_CLUSTER_INFO = ('ganeti.example.org', 5080) |
114 |
|
115 |
LANGUAGES = ( |
116 |
('el', u'Ελληνικά'), |
117 |
('en', 'English'), |
118 |
) |
119 |
|